Home
last modified time | relevance | path

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

12345678910>>...29

/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/chromium_org/base/
Dobserver_list_unittest.cc20 class Foo { class
23 virtual ~Foo() {} in ~Foo()
26 class Adder : public Foo {
39 class Disrupter : public Foo {
41 Disrupter(ObserverList<Foo>* list, Foo* doomed) in Disrupter()
51 ObserverList<Foo>* list_;
52 Foo* doomed_;
55 class ThreadSafeDisrupter : public Foo {
57 ThreadSafeDisrupter(ObserverListThreadSafe<Foo>* list, Foo* doomed) in ThreadSafeDisrupter()
67 ObserverListThreadSafe<Foo>* list_;
[all …]
Dtask_runner_util_unittest.cc31 struct Foo { struct
32 ~Foo() { in ~Foo() argument
37 scoped_ptr<Foo> CreateFoo() { in CreateFoo()
38 return scoped_ptr<Foo>(new Foo); in CreateFoo()
41 void ExpectFoo(scoped_ptr<Foo> foo) { in ExpectFoo()
43 scoped_ptr<Foo> local_foo(foo.Pass()); in ExpectFoo()
49 void operator()(Foo* foo) const { in operator ()()
55 scoped_ptr<Foo, FooDeleter> CreateScopedFoo() { in CreateScopedFoo()
56 return scoped_ptr<Foo, FooDeleter>(new Foo); in CreateScopedFoo()
59 void ExpectScopedFoo(scoped_ptr<Foo, FooDeleter> foo) { in ExpectScopedFoo() argument
[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 …]
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.cpp525 LateFoo Foo; member in LateBar
572 BarA.Foo.a = 2; // \ in late_bad_2()
580 BarA.Foo.mu.Lock(); in late_bad_3()
584 BarA.Foo.mu.Unlock(); in late_bad_3()
589 BarA.Foo.mu.Lock(); in late_bad_4()
593 BarA.Foo.mu.Unlock(); in late_bad_4()
891 class Foo { class
896 int Foo::method1(int i) { in method1()
912 Foo a; in main()
928 class Foo { class
[all …]
Dzero-length-arrays.cpp5 class Foo { class
6 ~Foo();
7 Foo(const Foo&);
9 Foo(int);
14 Foo foos[0];
15 Foo foos2[0][2];
16 Foo foos3[2][0];
/external/clang/test/SemaTemplate/
Dms-delayed-default-template-args.cpp7 struct Foo { T x; }; argument
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/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()
35 __asm mov eax, offset Foo::ptr in t2()
36 __asm mov eax, offset Foo::Bar::ptr in t2()
[all …]
/external/robolectric/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/chromium_org/third_party/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/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/lldb/test/unittest2/test/
Dtest_skipping.py9 class Foo(unittest2.TestCase): class
14 test = Foo("test_skip_me")
20 class Foo(unittest2.TestCase): class
26 test = Foo("test_nothing")
36 class Foo(unittest2.TestCase): class
45 test_do_skip = Foo("test_skip")
46 test_dont_skip = Foo("test_dont_skip")
60 class Foo(unittest2.TestCase): class
65 Foo = unittest2.skip("testing")(Foo)
68 test = Foo("test_1")
[all …]
Dtest_loader.py15 class Foo(unittest2.TestCase): class
20 tests = unittest2.TestSuite([Foo('test_1'), Foo('test_2')])
23 self.assertEqual(loader.loadTestsFromTestCase(Foo), tests)
30 class Foo(unittest2.TestCase): class
36 self.assertEqual(loader.loadTestsFromTestCase(Foo), empty_suite)
66 class Foo(unittest2.TestCase): class
74 suite = loader.loadTestsFromTestCase(Foo)
76 self.assertEqual(list(suite), [Foo('runTest')])
873 class Foo(unittest2.TestCase): class
877 m.Foo = Foo
[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/qemu/android/base/memory/
DScopedPtr_unittest.cpp19 class Foo { class
21 Foo(int* countPtr) : mCountPtr(countPtr) {} in Foo() function in android::base::Foo
27 ~Foo() { in ~Foo()
38 Foo* NewFoo() { in NewFoo()
39 return new Foo(&mDestroyCount); in NewFoo()
47 ScopedPtr<Foo> foo; in TEST_F()
52 ScopedPtr<Foo> foo(NewFoo()); in TEST_F()
58 ScopedPtr<Foo> foo(NewFoo()); in TEST_F()
65 Foo* savedFoo = NULL; in TEST_F()
67 ScopedPtr<Foo> foo(NewFoo()); in TEST_F()
[all …]
/external/chromium_org/v8/test/mjsunit/bugs/
Dbug-222.js28 function Foo(a, b) { } class
29 Foo();
30 var oldArgs = Foo.arguments;
31 Foo();
32 var newArgs = Foo.arguments
37 Foo.arguments = oldArgs;
38 assertEquals(Foo.arguments, newArgs);
41 assertFalse(delete Foo.arguments);
42 assertEquals(Foo.arguments, newArgs);
/external/llvm/test/CodeGen/X86/
Dinalloca.ll3 %Foo = type { i32, i32 }
5 declare void @f(%Foo* inalloca %b)
10 %b = alloca inalloca %Foo
14 %f1 = getelementptr %Foo* %b, i32 0, i32 0
15 %f2 = getelementptr %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
34 %f1 = getelementptr %Foo* %b, i32 0, i32 0
35 %f2 = getelementptr %Foo* %b, i32 0, i32 1
[all …]
/external/chromium_org/tools/idl_parser/test_parser/
Dextattr_ppapi.idl33 *Interface(Foo)
39 [foo()] interface Foo {};
42 *Interface(Foo)
48 [foo(1)] interface Foo {};
51 *Interface(Foo)
57 [foo(1 true 1.2e-3)] interface Foo {};
60 *Interface(Foo)
67 [foo(null)] interface Foo {};
70 *Interface(Foo)
75 [foo=1] interface Foo {};
[all …]
/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** %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/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 …]
Dassign-prop-with-arc-runtime.m.result16 @interface Foo : NSObject {
17 Foo *__weak x, *__weak w, *__weak q1, *__weak q2;
23 Foo *assign_plus1;
25 @property (weak, readonly) Foo *x;
26 @property (weak) Foo *w;
27 @property (weak) Foo *q1, *q2;
33 @property (readonly) Foo *assign_plus1;
34 @property (readonly) Foo *assign_plus2;
35 @property (readonly) Foo *assign_plus3;
37 @property (weak) Foo *no_user_ivar1;
[all …]
/external/clang/test/CodeGenCXX/
Dcopy-initialization.cpp3 struct Foo { struct
4 Foo();
5 Foo(const Foo&);
10 operator const Foo&() const;
13 void f(Foo);
16 void g(Foo foo) { in g()
23 f(Foo()); in g()

12345678910>>...29