Lines Matching refs:HANDLE
36 // |kBrokerUnsandboxed|. If it's shorter and the broker doesn't close its handle
42 typedef HANDLE PlatformFile;
52 PlatformFile IntToPlatformFile(int32_t handle) {
54 return reinterpret_cast<HANDLE>(static_cast<intptr_t>(handle));
56 return handle;
160 int32_t OnInstanceConnected(PP_Instance instance, int32_t handle) {
161 PlatformFile file = IntToPlatformFile(handle);
254 int32_t handle = kInvalidHandle;
256 // Test getting the handle for an invalid resource.
257 ASSERT_EQ(PP_ERROR_BADRESOURCE, broker_interface_->GetHandle(0, &handle));
263 ASSERT_EQ(PP_ERROR_FAILED, broker_interface_->GetHandle(broker, &handle));
279 int32_t handle = kInvalidHandle;
280 ASSERT_EQ(PP_OK, broker_interface_->GetHandle(broker, &handle));
281 ASSERT_NE(kInvalidHandle, handle);
283 PlatformFile file = IntToPlatformFile(handle);