Home
last modified time | relevance | path

Searched refs:Foo (Results 1 – 25 of 786) sorted by relevance

12345678910>>...32

/external/clang/test/Preprocessor/
Dmacro_with_initializer_list.cpp11 class Foo { class
13 Foo();
14 Foo(std::initializer_list<int>);
15 bool operator==(const Foo);
16 Foo operator+(const Foo);
21 Foo F; in test_EQ()
22 F = Foo{1,2}; in test_EQ()
25 EQ(F,Foo()); in test_EQ()
26 EQ(F,Foo({1,2,3})); in test_EQ()
27 EQ(Foo({1,2,3}),F); in test_EQ()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DWellBehavedMapTest.java29 enum Foo { enum in WellBehavedMapTest
34 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( in testEntrySet_contain()
35 new EnumMap<Foo, Integer>(Foo.class)); in testEntrySet_contain()
36 map.putAll(ImmutableMap.of(Foo.X, 1, Foo.Y, 2, Foo.Z, 3)); in testEntrySet_contain()
39 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.X, 1))); in testEntrySet_contain()
40 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.Y, new Integer(2)))); in testEntrySet_contain()
43 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.X, 5))); in testEntrySet_contain()
46 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.T, 0))); in testEntrySet_contain()
50 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( in testEntry_setValue()
51 new EnumMap<Foo, Integer>(Foo.class)); in testEntry_setValue()
[all …]
/external/libchrome/base/
Dobserver_list_unittest.cc21 class Foo { class
24 virtual ~Foo() {} in ~Foo()
27 class Adder : public Foo {
38 class Disrupter : public Foo {
40 Disrupter(ObserverList<Foo>* list, Foo* doomed) in Disrupter()
48 ObserverList<Foo>* list_;
49 Foo* doomed_;
52 class ThreadSafeDisrupter : public Foo {
54 ThreadSafeDisrupter(ObserverListThreadSafe<Foo>* list, Foo* doomed) in ThreadSafeDisrupter()
62 ObserverListThreadSafe<Foo>* list_;
[all …]
/external/libweave/third_party/chromium/base/
Dobserver_list_unittest.cc18 class Foo { class
21 virtual ~Foo() {} in ~Foo()
24 class Adder : public Foo {
35 class Disrupter : public Foo {
37 Disrupter(ObserverList<Foo>* list, Foo* doomed) in Disrupter()
45 ObserverList<Foo>* list_;
46 Foo* doomed_;
50 class AddInObserve : public Foo {
72 ObserverList<Foo> observer_list; in TEST()
82 FOR_EACH_OBSERVER(Foo, observer_list, Observe(10)); in TEST()
[all …]
/external/guice/core/test/com/google/inject/
DDuplicateBindingsTest.java47 private Provider<Foo> pFoo = Providers.<Foo>of(new FooImpl());
48 private Class<? extends Provider<? extends Foo>> pclFoo = FooProvider.class;
49 private Class<? extends Foo> clFoo = FooImpl.class;
61 assertTrue(bindings.remove(Key.get(Foo.class, named("instance")))); in testDuplicateBindingsAreIgnored()
62 assertTrue(bindings.remove(Key.get(Foo.class, named("pInstance")))); in testDuplicateBindingsAreIgnored()
63 assertTrue(bindings.remove(Key.get(Foo.class, named("pKey")))); in testDuplicateBindingsAreIgnored()
64 assertTrue(bindings.remove(Key.get(Foo.class, named("linkedKey")))); in testDuplicateBindingsAreIgnored()
66 assertTrue(bindings.remove(Key.get(Foo.class, named("constructor")))); in testDuplicateBindingsAreIgnored()
68 assertTrue(bindings.remove(Key.get(Foo.class, named("providerMethod")))); in testDuplicateBindingsAreIgnored()
88 "A binding to " + Foo.class.getName() + " was already configured " + in testProviderMethodsFailIfInstancesDiffer()
[all …]
DBoundProviderTest.java29 bind(Foo.class).toProvider(FooProvider.class); in testFooProvider()
33 Foo a = injector.getInstance(Foo.class); in testFooProvider()
34 Foo b = injector.getInstance(Foo.class); in testFooProvider()
46 bind(Foo.class).toProvider(SingletonFooProvider.class); in testSingletonFooProvider()
50 Foo a = injector.getInstance(Foo.class); in testSingletonFooProvider()
51 Foo b = injector.getInstance(Foo.class); in testSingletonFooProvider()
62 static class Foo { class in BoundProviderTest
66 Foo(Bar bar, int i) { in Foo() method in BoundProviderTest.Foo
72 static class FooProvider implements Provider<Foo> {
82 public Foo get() { in get()
[all …]
DNullableInjectionPointTest.java60 assertNull(createInjector().getInstance(Foo.class)); in testGetInstanceOfNull()
103 bind(Foo.class).toProvider(new Provider<Foo>() { in createInjector()
104 public Foo get() { in createInjector()
119 bind(Foo.class).toInstance(null);
133 bind(Foo.class).toProvider(new Provider<Foo>() {
134 public Foo get() {
154 bind(Foo.class).toProvider(new Provider<Foo>() {
155 public Foo get() {
175 bind(Foo.class).toProvider(new Provider<Foo>() {
176 public Foo get() {
[all …]
/external/clang/test/SemaCXX/
Dconstructor.cpp4 class Foo { class
5 Foo();
6 (Foo)(float) { }
7 explicit Foo(int); // expected-note {{previous declaration is here}}
8 Foo(const Foo&);
10 ((Foo))(INT); // expected-error{{cannot be redeclared}}
12Foo(Foo foo, int i = 17, int j = 42); // expected-error{{copy constructor must pass its first argu…
14 static Foo(short, short); // expected-error{{constructor cannot be declared 'static'}}
15 virtual Foo(double); // expected-error{{constructor cannot be declared 'virtual'}}
16 Foo(long) const; // expected-error{{'const' qualifier is not allowed on a constructor}}
[all …]
Dpass-object-size.cpp4 int Foo(void *const p __attribute__((pass_object_size(0))));
10 static int Foo(void *const p __attribute__((pass_object_size(0))));
17 int Foo(void *const p __attribute__((pass_object_size(0))));
23 …int (*A)(void *) = &Foo; //expected-error{{cannot take address of function 'Foo' because parameter… in Decls()
24 …int (*B)(void *) = Foo; //expected-error{{cannot take address of function 'Foo' because parameter … in Decls()
29 …int (*E)(void *) = &Statics::Foo; //expected-error{{cannot take address of function 'Foo' because … in Decls()
32 …int (*G)(void *) = &Members::Foo; //expected-error{{cannot take address of function 'Foo' because … in Decls()
38 …A = &Foo; //expected-error{{cannot take address of function 'Foo' because parameter 1 has pass_obj… in Assigns()
39 …A = Foo; //expected-error{{cannot take address of function 'Foo' because parameter 1 has pass_obje… in Assigns()
44 …A = &Statics::Foo; //expected-error{{cannot take address of function 'Foo' because parameter 1 has… in Assigns()
[all …]
Dwarn-sign-conversion.cpp11 template <typename T> struct Foo { struct
25 int c1 = 1 ? i : Foo<bool>::C; in doit_anonymous()
26 int c2 = 1 ? Foo<bool>::C : i; in doit_anonymous()
28 int d1a = 1 ? i : Foo<bool>::D; // expected-warning {{test1::Foo<bool>::(anonymous enum at }} in doit_anonymous() argument
29 int d1b = 1 ? i : Foo<bool>::D; // expected-warning {{warn-sign-conversion.cpp:13:5)' to 'int'}} in doit_anonymous()
30 …int d2a = 1 ? Foo<bool>::D : i; // expected-warning {{operand of ? changes signedness: 'test1::Foo… in doit_anonymous()
31 int d2b = 1 ? Foo<bool>::D : i; // expected-warning {{warn-sign-conversion.cpp:13:5)' to 'int'}} in doit_anonymous()
32 …int d3a = 1 ? B : Foo<bool>::D; // expected-warning {{operand of ? changes signedness: 'test1::Foo… in doit_anonymous()
33 int d3b = 1 ? B : Foo<bool>::D; // expected-warning {{warn-sign-conversion.cpp:13:5)' to 'int'}} in doit_anonymous()
34 …int d4a = 1 ? Foo<bool>::D : B; // expected-warning {{operand of ? changes signedness: 'test1::Foo… in doit_anonymous()
[all …]
Dwarn-thread-safety-analysis.cpp567 LateFoo Foo; member in LateBar
614 BarA.Foo.a = 2; // \ in late_bad_2()
622 BarA.Foo.mu.Lock(); in late_bad_3()
626 BarA.Foo.mu.Unlock(); in late_bad_3()
631 BarA.Foo.mu.Lock(); in late_bad_4()
635 BarA.Foo.mu.Unlock(); in late_bad_4()
933 class Foo { class
938 int Foo::method1(int i) { in method1()
954 Foo a; in main()
970 class Foo { class
[all …]
/external/clang/test/SemaTemplate/
Dms-delayed-default-template-args.cpp7 struct Foo { T x; }; struct
9 template struct Foo<>; variable
15 struct Foo { struct
21 template struct nested::Foo<>; member in test_namespace::nested
27 struct Foo { struct
33 template struct Outer::Foo<>; member in test_inner_class_template::Outer
40 struct Foo { struct
43 template struct Foo<&g>; variable
50 struct Foo { struct
65 struct Foo { int x[N]; }; struct
[all …]
/external/compiler-rt/test/asan/TestCases/Posix/
Dcoverage-caller-callee.cc27 struct Foo {virtual void f() {if (P) printf("Foo::f()\n");}}; in f() argument
28 struct Foo1 : Foo {virtual void f() {if (P) printf("%d\n", __LINE__);}}; in f()
29 struct Foo2 : Foo {virtual void f() {if (P) printf("%d\n", __LINE__);}}; in f()
30 struct Foo3 : Foo {virtual void f() {if (P) printf("%d\n", __LINE__);}}; in f()
31 struct Foo4 : Foo {virtual void f() {if (P) printf("%d\n", __LINE__);}}; in f()
32 struct Foo5 : Foo {virtual void f() {if (P) printf("%d\n", __LINE__);}}; in f()
33 struct Foo6 : Foo {virtual void f() {if (P) printf("%d\n", __LINE__);}}; in f()
34 struct Foo7 : Foo {virtual void f() {if (P) printf("%d\n", __LINE__);}}; in f()
35 struct Foo8 : Foo {virtual void f() {if (P) printf("%d\n", __LINE__);}}; in f()
36 struct Foo9 : Foo {virtual void f() {if (P) printf("%d\n", __LINE__);}}; in f()
[all …]
Dnew_array_cookie_with_new_from_class.cc11 struct Foo { struct
14 ~Foo(); argument
22 Foo::~Foo() {} in ~Foo() argument
23 void *Foo::allocated;
25 Foo *getFoo(size_t n) { in getFoo()
26 return new Foo[n]; in getFoo()
30 Foo *foo = getFoo(10); in main()
32 fprintf(stderr, "alloc: %p\n", Foo::allocated); in main()
34 reinterpret_cast<uintptr_t>(Foo::allocated) + sizeof(void*)); in main()
35 *reinterpret_cast<uintptr_t*>(Foo::allocated) = 42; in main()
/external/clang/test/CodeGen/
Dms-inline-asm.cpp6 struct Foo { struct
17 Foo::ptr = (int *)0xDEADBEEF; in t1() argument
18 Foo::Bar::ptr = (int *)0xDEADBEEF; in t1()
19 __asm mov eax, Foo ::ptr in t1()
20 __asm mov eax, Foo :: Bar :: ptr in t1()
21 __asm mov eax, [Foo:: ptr] in t1()
22 __asm mov eax, dword ptr [Foo :: ptr] in t1()
23 __asm mov eax, dword ptr [Foo :: ptr] in t1()
31 __asm mov eax, offset Foo::ptr in t2()
32 __asm mov eax, offset Foo::Bar::ptr in t2()
[all …]
/external/llvm/test/CodeGen/X86/
Dinalloca.ll3 %Foo = type { i32, i32 }
5 declare void @f(%Foo* inalloca %b)
10 %b = alloca inalloca %Foo
13 %f1 = getelementptr %Foo, %Foo* %b, i32 0, i32 0
14 %f2 = getelementptr %Foo, %Foo* %b, i32 0, i32 1
20 call void @f(%Foo* inalloca %b)
25 declare void @inreg_with_inalloca(i32 inreg %a, %Foo* inalloca %b)
30 %b = alloca inalloca %Foo
33 %f1 = getelementptr %Foo, %Foo* %b, i32 0, i32 0
34 %f2 = getelementptr %Foo, %Foo* %b, i32 0, i32 1
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/bytecode/
DShadowWranglerTest.java37 Foo foo = new Foo(name); in testConstructorInvocation_WithDefaultConstructorAndNoConstructorDelegateOnShadowClass()
45 Foo foo = new Foo(name); in testConstructorInvocation()
54 Foo foo = new Foo(name); in testRealObjectAnnotatedFieldsAreSetBeforeConstructorIsCalled()
66 Foo foo = new Foo(name); in testMethodDelegation()
74 Foo foo1 = new Foo(name); in testEqualsMethodDelegation()
75 Foo foo2 = new Foo(name); in testEqualsMethodDelegation()
83 Foo foo = new Foo(name); in testHashCodeMethodDelegation()
91 Foo foo = new Foo(name); in testToStringMethodDelegation()
126 Foo foo = new Foo(null); in shouldRemoveNoiseFromStackTraces()
144 assertThat(stackTrace, containsString(Foo.class.getName() + ".getName(")); in shouldRemoveNoiseFromStackTraces()
[all …]
/external/llvm/test/Analysis/TypeBasedAliasAnalysis/
Dplacement-tbaa.ll5 ; struct Foo { long i; };
8 ; Foo *f = new Foo;
13 ; f = new (f) Foo;
23 %struct.Foo = type { i64 }
29 %f = alloca %struct.Foo*, align 8
34 %0 = bitcast i8* %call to %struct.Foo*
35 store %struct.Foo* %0, %struct.Foo** %f, align 8, !tbaa !4
36 %1 = load %struct.Foo*, %struct.Foo** %f, align 8, !tbaa !4
37 %i = getelementptr inbounds %struct.Foo, %struct.Foo* %1, i32 0, i32 0
49 %4 = load %struct.Foo*, %struct.Foo** %f, align 8, !tbaa !4
[all …]
/external/sfntly/cpp/src/test/
Dsmart_pointer_test.cc24 class Foo : public RefCounted<Foo> { class
33 Ptr<Foo> p1; in TestSmartPointer()
34 p1 = new Foo(); in TestSmartPointer()
36 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
38 Ptr<Foo> p2; in TestSmartPointer()
42 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
44 Ptr<Foo> p3; in TestSmartPointer()
49 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
51 p2 = new Foo(); in TestSmartPointer()
55 EXPECT_EQ(size_t(2), RefCounted<Foo>::object_counter_); in TestSmartPointer()
[all …]
/external/clang/test/CodeGenObjC/
Dpredefined-expr.m3 // CHECK: @"__func__.-[Foo instanceTest1]" = private unnamed_addr constant [21 x i8] c"-[Foo instan…
4 // CHECK: @"__func__.-[Foo instanceTest2:]" = private unnamed_addr constant [22 x i8] c"-[Foo insta…
5 // CHECK: @"__func__.-[Foo instanceTest3:withB:]" = private unnamed_addr constant [28 x i8] c"-[Foo
6 // CHECK: @"__func__.-[Foo instanceTest4]" = private unnamed_addr constant [21 x i8] c"-[Foo instan…
7 // CHECK: @"__func__.+[Foo classTest1]" = private unnamed_addr constant [18 x i8] c"+[Foo classTest…
8 // CHECK: @"__func__.+[Foo classTest2:]" = private unnamed_addr constant [19 x i8] c"+[Foo classTes…
9 // CHECK: @"__func__.+[Foo classTest3:withB:]" = private unnamed_addr constant [25 x i8] c"+[Foo cl…
10 // CHECK: @"__func__.+[Foo classTest4]" = private unnamed_addr constant [18 x i8] c"+[Foo classTest…
11 // CHECK: @"__func__.-[Foo(Category) instanceTestWithCategory]" = private unnamed_addr constant [42…
12 // CHECK: @"__func__.+[Foo(Category) classTestWithCategory]" = private unnamed_addr constant [39 x …
[all …]
/external/clang/test/Index/
Dcomplete-memfunc-cvquals.cpp3 struct Foo { struct
17 void text(Foo f, Foo *fp, const Foo &fc, const Foo *fcp, in text()
18 smart_ptr<Foo> sf, const smart_ptr<Foo> &sfc, Foo volatile *fvp) { in text()
28 void Foo::bar() { in bar()
32 void Foo::baz() const { in baz()
36 void Foo::bingo() volatile { in bingo()
/external/llvm/test/Transforms/GlobalDCE/
Dglobal_ctors_integration.ll8 %class.Foo = type { i32 }
10 @foo = global %class.Foo zeroinitializer, align 4
16 call void @_ZN3FooC1E17LinkerInitialized(%class.Foo* @foo, i32 %1)
21 define linkonce_odr void @_ZN3FooC1E17LinkerInitialized(%class.Foo* %this, i32) unnamed_addr #0 ali…
22 %2 = alloca %class.Foo*, align 8
24 store %class.Foo* %this, %class.Foo** %2, align 8
26 %4 = load %class.Foo*, %class.Foo** %2
28 call void @_ZN3FooC2E17LinkerInitialized(%class.Foo* %4, i32 %5)
33 define linkonce_odr void @_ZN3FooC2E17LinkerInitialized(%class.Foo* %this, i32) unnamed_addr #1 ali…
34 %2 = alloca %class.Foo*, align 8
[all …]
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DManyConstructorsTest.java40 Foo noIndex = factory.create("no index"); in testTwoConstructors()
43 Foo index = factory.create("index", 1); in testTwoConstructors()
56 Foo noIndex = factory.create("no index"); in testDifferentOrderParameters()
59 Foo index = factory.create(1, "index"); in testDifferentOrderParameters()
62 Foo index2 = factory.create("index", 2); in testDifferentOrderParameters()
72 .implement(Bar.class, Foo.class) in testInterfaceToImpl()
93 Foo noIndex = factory.create("no index"); in testUsingOneConstructor()
104 Foo index = factory2.create("index", 1); in testUsingOneConstructor()
115 .implement(Foo.class, TooManyMatches.class) in testTooManyMatchingConstructors()
137 Asserts.assertContains(expected.getMessage(), "1) " + Foo.class.getName() in testNoMatchingConstructorsBecauseTooManyParams()
[all …]
/external/guava/guava-testlib/test/com/google/common/testing/
DAbstractPackageSanityTestsTest.java50 assertThat(findClassesToTest(ImmutableList.of(Foo.class))) in testFindClassesToTest_noCorrespondingTestClass()
51 .has().exactly(Foo.class).inOrder(); in testFindClassesToTest_noCorrespondingTestClass()
52 assertThat(findClassesToTest(ImmutableList.of(Foo.class, Foo2Test.class))) in testFindClassesToTest_noCorrespondingTestClass()
53 .has().exactly(Foo.class).inOrder(); in testFindClassesToTest_noCorrespondingTestClass()
58 assertThat(findClassesToTest(ImmutableList.of(Foo.class))) in testFindClassesToTest_publicApiOnly()
67 assertThat(findClassesToTest(ImmutableList.of(Foo.class))).has().item(Foo.class); in testFindClassesToTest_ignoreClasses()
71 assertThat(findClassesToTest(ImmutableList.of(Foo.class, FooTest.class), "testNotThere")) in testFindClassesToTest_withCorrespondingTestClassButNotExplicitlyTested()
72 .has().exactly(Foo.class).inOrder(); in testFindClassesToTest_withCorrespondingTestClassButNotExplicitlyTested()
73 assertThat(findClassesToTest(ImmutableList.of(Foo.class, FooTest.class), "testNotPublic")) in testFindClassesToTest_withCorrespondingTestClassButNotExplicitlyTested()
74 .has().exactly(Foo.class).inOrder(); in testFindClassesToTest_withCorrespondingTestClassButNotExplicitlyTested()
[all …]
/external/clang/test/ARCMT/
Dassign-prop-with-arc-runtime.m16 @interface Foo : NSObject { interface
17 Foo *x, *w, *q1, *q2;
23 Foo *assign_plus1;
25 @property (readonly) Foo *x;
26 @property (assign) Foo *w;
27 @property Foo *q1, *q2;
33 @property (readonly) Foo *assign_plus1;
34 @property (readonly) Foo *assign_plus2;
35 @property (readonly) Foo *assign_plus3;
37 @property (assign) Foo *no_user_ivar1;
[all …]

12345678910>>...32