HomeSort by relevance Sort by last modified time
    Searched refs:WithAnnot (Results 1 - 4 of 4) sorted by null

  /external/google-fruit/tests/
test_binding_compression.py 35 @pytest.mark.parametrize('IAnnot,XAnnot,WithAnnot', [
39 def test_provider_returning_value_success_with_annotation(IAnnot, XAnnot, WithAnnot):
56 Assert((injector.get<WithAnnot<I >>() .value == 5));
57 Assert((injector.get<WithAnnot<I* >>()->value == 5));
58 Assert((injector.get<WithAnnot<I& >>() .value == 5));
59 Assert((injector.get<WithAnnot<const I >>() .value == 5));
60 Assert((injector.get<WithAnnot<const I* >>()->value == 5));
61 Assert((injector.get<WithAnnot<const I& >>() .value == 5));
62 Assert((injector.get<WithAnnot<std::shared_ptr<I>>>()->value == 5));
63 Assert(fruit::impl::InjectorAccessorForTests::unsafeGet<WithAnnot<X>>(injector) == nullptr)
    [all...]
test_register_provider.py 32 @pytest.mark.parametrize('WithAnnot', [
40 def test_register_provider_success(WithAnnot,ConstructX, XPtr):
46 fruit::Component<WithAnnot<X>> getComponent() {
48 .registerProvider<WithAnnot<XPtr>()>([](){return ConstructX;});
52 fruit::Injector<WithAnnot<X>> injector(getComponent);
54 Assert((injector.get<WithAnnot<X >>(). value == 5));
55 Assert((injector.get<WithAnnot<X* >>()->value == 5));
56 Assert((injector.get<WithAnnot<X& >>(). value == 5));
57 Assert((injector.get<WithAnnot<const X >>(). value == 5));
58 Assert((injector.get<WithAnnot<const X* >>()->value == 5))
    [all...]
test_multibindings_bind_provider.py 60 @pytest.mark.parametrize('WithAnnot', [
64 def test_bind_multibinding_provider_abstract_class_success(WithAnnot):
79 .addMultibindingProvider<WithAnnot<I*>()>([](){return static_cast<I*>(new X());});
85 Assert(injector.getMultibindings<WithAnnot<I>>().size() == 1);
86 Assert(injector.getMultibindings<WithAnnot<I>>()[0]->foo() == 5);
94 @pytest.mark.parametrize('WithAnnot', [
98 def test_bind_multibinding_provider_abstract_class_with_no_virtual_destructor_error(WithAnnot):
112 .addMultibindingProvider<WithAnnot<I*>()>([](){return static_cast<I*>(new X());});
126 @pytest.mark.parametrize('WithAnnot', [
141 def test_bind_multibinding_provider_with_param_success(ConstructX, XPtr, WithAnnot, YVariant)
    [all...]
test_register_factory.py     [all...]

Completed in 173 milliseconds