Lines Matching refs:Greeter
21 fruit::Component<fruit::Annotated<Cached, Greeter>> getMainComponent() {
29 fruit::Injector<fruit::Annotated<Cached, Greeter>> createInjector() {
30 return fruit::Injector<fruit::Annotated<Cached, Greeter>>(getMainComponent);
34 fruit::Injector<fruit::Annotated<Cached, Greeter>> injector = createInjector();
35 Greeter* greeter = injector.get<fruit::Annotated<Cached, Greeter*>>();
36 ASSERT_EQ(greeter->greet(), "Hello, world!");
40 fruit::Injector<fruit::Annotated<Cached, Greeter>> injector = createInjector();
41 Greeter* greeter = injector.get<fruit::Annotated<Cached, Greeter*>>();
42 greeter->greet();
43 ASSERT_EQ(greeter->greet(), "Hello, world!");