Index: mojo/shell/shell_test_base.h |
diff --git a/mojo/shell/shell_test_base.h b/mojo/shell/shell_test_base.h |
index 7c61844431c5a9d9fc1ca658d790f56d2d462bbc..f28cc6ec8a99f5c337625476b47eee224c6f4f74 100644 |
--- a/mojo/shell/shell_test_base.h |
+++ b/mojo/shell/shell_test_base.h |
@@ -39,9 +39,11 @@ class ShellTestBase : public testing::Test { |
const GURL& application_url, |
const std::string& service_name); |
- ScopedMessagePipeHandle ConnectToServiceViaNetwork( |
- const GURL& application_url, |
- const std::string& service_name); |
+ template <typename Interface> |
+ void ConnectToService(const GURL& application_url, |
+ InterfacePtr<Interface>* ptr) { |
+ ptr->Bind(ConnectToService(application_url, Interface::Name_).Pass()); |
+ } |
base::MessageLoop* message_loop() { return &message_loop_; } |
Context* shell_context() { return &shell_context_; } |