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..98e744c1870406933898bc9d4a35c5d44423bfb4 100644 |
--- a/mojo/shell/shell_test_base.h |
+++ b/mojo/shell/shell_test_base.h |
@@ -43,6 +43,19 @@ class ShellTestBase : public testing::Test { |
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()); |
+ } |
+ |
+ template <typename Interface> |
+ void ConnectToServiceViaNetwork(const GURL& application_url, |
+ InterfacePtr<Interface>* ptr) { |
+ ptr->Bind( |
+ ConnectToServiceViaNetwork(application_url, Interface::Name_).Pass()); |
+ } |
+ |
base::MessageLoop* message_loop() { return &message_loop_; } |
Context* shell_context() { return &shell_context_; } |