Home
last modified time | relevance | path

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

/external/libmojo/mojo/public/cpp/bindings/tests/
Dvalidation_context_unittest.cc44 EXPECT_FALSE(context.ClaimHandle(Handle_Data(0))); in TEST()
45 EXPECT_FALSE(context.ClaimHandle( in TEST()
48 EXPECT_TRUE(context.ClaimHandle( in TEST()
116 TEST(ValidationContextTest, ClaimHandle) { in TEST() argument
121 EXPECT_TRUE(context.ClaimHandle(Handle_Data(0))); in TEST()
122 EXPECT_FALSE(context.ClaimHandle(Handle_Data(0))); in TEST()
124 EXPECT_TRUE(context.ClaimHandle(Handle_Data(9))); in TEST()
125 EXPECT_FALSE(context.ClaimHandle(Handle_Data(10))); in TEST()
129 EXPECT_FALSE(context.ClaimHandle(Handle_Data(8))); in TEST()
132 EXPECT_TRUE(context.ClaimHandle( in TEST()
[all …]
/external/libmojo/mojo/public/cpp/bindings/lib/
Dvalidation_util.cc235 if (validation_context->ClaimHandle(input.handle)) in ValidateHandleOrInterface()
244 if (validation_context->ClaimHandle(input)) in ValidateHandleOrInterface()
Dvalidation_context.h53 bool ClaimHandle(const Handle_Data& encoded_handle);
Dvalidation_context.cc58 bool ValidationContext::ClaimHandle(const Handle_Data& encoded_handle) { in ClaimHandle() function in mojo::internal::ValidationContext