Home
last modified time | relevance | path

Searched refs:SampleData (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_ibinder.cpp28 SampleData::newBinder(nullptr, [&](SampleData*) { destroyed = true; }); in TEST_F() argument
39 AIBinder* binder = SampleData::newBinder(); in TEST_F()
41 EXPECT_EQ(SampleData::kClass, AIBinder_getClass(binder)); in TEST_F()
46 AIBinder* binder = SampleData::newBinder(); in TEST_F()
47 EXPECT_TRUE(AIBinder_associateClass(binder, SampleData::kClass)); in TEST_F()
52 AIBinder* binder = SampleData::newBinder(); in TEST_F()
53 EXPECT_FALSE(AIBinder_associateClass(binder, SampleData::kAnotherClassWithSameDescriptor)); in TEST_F()
58 AIBinder* binder = SampleData::newBinder(); in TEST_F()
59 EXPECT_FALSE(AIBinder_associateClass(binder, SampleData::kAnotherClass)); in TEST_F()
64 EXPECT_NE(SampleData::kClass, SampleData::kAnotherClassWithSameDescriptor); in TEST_F()
[all …]
Dutilities.cpp33 SampleData* data = static_cast<SampleData*>(userData); in SampleClassOnDestroy()
42 SampleData* data = static_cast<SampleData*>(AIBinder_getUserData(binder)); in SampleClassOnTransact()
54 const char* SampleData::kDescriptor = "this-is-arbitrary";
55 const AIBinder_Class* SampleData::kClass =
56 AIBinder_Class_define(SampleData::kDescriptor, SampleClassOnCreate,
59 const AIBinder_Class* SampleData::kAnotherClassWithSameDescriptor = AIBinder_Class_define(
60 SampleData::kDescriptor, SampleClassOnCreate, SampleClassOnDestroy, SampleClassOnTransact);
62 const char* SampleData::kAnotherDescriptor = "this-is-another-arbitrary-thing";
63 const AIBinder_Class* SampleData::kAnotherClass =
64 AIBinder_Class_define(SampleData::kAnotherDescriptor, SampleClassOnCreate,
Dtest_parcel.cpp67 AIBinder* binder = SampleData::newBinder( in ExpectInOut()
77 EXPECT_OK(SampleData::transact( in ExpectInOut()
104 AIBinder* binder = SampleData::newBinder(); in TEST_F()
141 SampleData::newBinder(nullptr, ExpectLifetimeTransactions(0)); in TEST_F()
145 SampleData::transact(binder, kCode, [&](AParcel* in) { in TEST_F()
241 AIBinder* binder = SampleData::newBinder( in TEST_F()
255 EXPECT_OK(SampleData::transact( in TEST_F()
269 AIBinder* binder = SampleData::newBinder(TransactionsReturn(STATUS_OK), in TEST_F()
272 EXPECT_OK(SampleData::transact( in TEST_F()
283 AIBinder* binder = SampleData::newBinder( in TEST_F()
[all …]
Dutilities.h69 struct SampleData;
71 typedef std::function<void(SampleData*)> OnDestroyFunc;
94 struct SampleData : ThisShouldBeDestroyed { struct
102 SampleData(const OnTransactFunc& oT = nullptr, argument
118 SampleData* data = new SampleData(onTransact, onDestroy); argument
149 return [count](SampleData* data) { in ExpectLifetimeTransactions() argument