Lines Matching refs:Broker
27 REGISTER_TEST_CASE(Broker);
31 const char kHelloMessage[] = "Hello Plugin! This is Broker!";
32 // Message sent from broker to plugin if the broker is unsandboxed.
33 const char kBrokerUnsandboxed[] = "Broker is Unsandboxed!";
34 // Message sent from broker to plugin if the broker is sandboxed. This message
36 // |kBrokerUnsandboxed|. If it's shorter and the broker doesn't close its handle
39 const char kBrokerSandboxed[] = "Broker is Sandboxed! Verification failed!";
172 // Callback in the broker when a new broker connection occurs.
184 // Verify broker is not sandboxed and send result to plugin over the pipe.
242 // Very simplistic test to make sure we can create a broker interface.
245 PP_Resource broker = broker_interface_->CreateTrusted(
247 ASSERT_TRUE(broker);
250 ASSERT_TRUE(broker_interface_->IsBrokerTrusted(broker));
273 PP_Resource broker = broker_interface_->CreateTrusted(
275 ASSERT_TRUE(broker);
276 ASSERT_EQ(PP_ERROR_FAILED, broker_interface_->GetHandle(broker, &handle));
282 PP_Resource broker = broker_interface_->CreateTrusted(
284 ASSERT_TRUE(broker);
287 callback.WaitForResult(broker_interface_->Connect(broker,
293 ASSERT_EQ(PP_OK, broker_interface_->GetHandle(broker, &handle));
307 // This assumes that the browser side is set up to deny access to the broker.
308 PP_Resource broker = broker_interface_->CreateTrusted(
310 ASSERT_TRUE(broker);
313 callback.WaitForResult(broker_interface_->Connect(broker,
322 // This assumes that the browser side is set up to allow access to the broker.
323 PP_Resource broker = broker_interface_->CreateTrusted(
325 ASSERT_TRUE(broker);
328 callback.WaitForResult(broker_interface_->Connect(broker,
337 PP_Resource broker = broker_interface_->CreateTrusted(
339 ASSERT_TRUE(broker);
340 ASSERT_EQ(PP_FALSE, broker_interface_->IsAllowed(broker));
346 PP_Resource broker = broker_interface_->CreateTrusted(
348 ASSERT_TRUE(broker);
349 ASSERT_EQ(PP_TRUE, broker_interface_->IsAllowed(broker));