diff options
author | Marco Poletti <poletti.marco@gmail.com> | 2016-11-19 19:46:09 +0000 |
---|---|---|
committer | Marco Poletti <poletti.marco@gmail.com> | 2016-11-19 19:46:13 +0000 |
commit | 5e64bc6bf2ec83333ab2b29bb3d93256902d69ce (patch) | |
tree | fdccb4e384b87504f5805d730a7c5d9b4198299f /tests/test_binding_clash.py | |
parent | f296277d200474a34f411d289a92da86f63dad5e (diff) | |
download | google-fruit-5e64bc6bf2ec83333ab2b29bb3d93256902d69ce.tar.gz |
Reintroduce some using declarations in COMMON_DEFINITIONS (in e2e tests) now that the parameter replacement no longer applies there.
Diffstat (limited to 'tests/test_binding_clash.py')
-rwxr-xr-x | tests/test_binding_clash.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/tests/test_binding_clash.py b/tests/test_binding_clash.py index b037ba3..6da1841 100755 --- a/tests/test_binding_clash.py +++ b/tests/test_binding_clash.py @@ -22,7 +22,10 @@ COMMON_DEFINITIONS = ''' #include "test_macros.h" struct Annotation1 {}; + using intAnnot1 = fruit::Annotated<Annotation1, int>; + struct Annotation2 {}; + using intAnnot2 = fruit::Annotated<Annotation2, int>; ''' @params('int', 'fruit::Annotated<Annotation1, int>') @@ -43,9 +46,6 @@ def test_binding_and_binding(intAnnot): def test_binding_and_binding_with_different_annotation_ok(): source = ''' - using intAnnot1 = fruit::Annotated<Annotation1, int>; - using intAnnot2 = fruit::Annotated<Annotation2, int>; - fruit::Component<intAnnot1, intAnnot2> getComponent() { return fruit::createComponent() .registerConstructor<intAnnot1()>() @@ -79,9 +79,6 @@ def test_binding_and_install(intAnnot): def test_binding_and_install_with_different_annotation_ok(): source = ''' - using intAnnot1 = fruit::Annotated<Annotation1, int>; - using intAnnot2 = fruit::Annotated<Annotation2, int>; - fruit::Component<intAnnot1> getParentComponent() { return fruit::createComponent() .registerConstructor<intAnnot1()>(); @@ -127,9 +124,6 @@ def test_install_and_install_with_annotation(intAnnot): def test_install_and_install_with_different_annotation_ok(): source = ''' - using intAnnot1 = fruit::Annotated<Annotation1, int>; - using intAnnot2 = fruit::Annotated<Annotation2, int>; - fruit::Component<intAnnot1> getParentComponent1() { return fruit::createComponent() .registerConstructor<intAnnot1()>(); @@ -217,9 +211,6 @@ def test_during_component_merge(intAnnot): def test_during_component_merge_with_different_annotation_ok(): source = ''' - using intAnnot1 = fruit::Annotated<Annotation1, int>; - using intAnnot2 = fruit::Annotated<Annotation2, int>; - fruit::Component<intAnnot1> getComponent1() { return fruit::createComponent() .registerConstructor<intAnnot1()>(); |