summaryrefslogtreecommitdiffstats
path: root/mojo/service_manager
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-18 22:48:41 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-18 22:48:41 +0000
commit84f834261a12b2cf37f5e7ac593c2ca38b55a91f (patch)
tree235a22b2b78da4dfa6a371910cb22f55e4a0af1b /mojo/service_manager
parent5d1c7ec48e18be993e400c28f1d3237ac4ad745c (diff)
downloadchromium_src-84f834261a12b2cf37f5e7ac593c2ca38b55a91f.zip
chromium_src-84f834261a12b2cf37f5e7ac593c2ca38b55a91f.tar.gz
chromium_src-84f834261a12b2cf37f5e7ac593c2ca38b55a91f.tar.bz2
Change Service<> to ServiceConnection<> and ServiceFactory<> to ServiceConnector<>
R=darin@chromium.org, ben BUG= Review URL: https://codereview.chromium.org/242213005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264879 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/service_manager')
-rw-r--r--mojo/service_manager/service_manager_unittest.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/mojo/service_manager/service_manager_unittest.cc b/mojo/service_manager/service_manager_unittest.cc
index c7b3d2a..6ba9d97 100644
--- a/mojo/service_manager/service_manager_unittest.cc
+++ b/mojo/service_manager/service_manager_unittest.cc
@@ -25,7 +25,7 @@ struct TestContext {
};
class TestServiceImpl :
- public Service<TestService, TestServiceImpl, TestContext> {
+ public ServiceConnection<TestService, TestServiceImpl, TestContext> {
public:
TestServiceImpl() {}
@@ -38,10 +38,11 @@ class TestServiceImpl :
client()->AckTest();
}
- void Initialize(ServiceFactory<TestServiceImpl, TestContext>* service_factory,
- ScopedMessagePipeHandle client_handle) {
- Service<TestService, TestServiceImpl, TestContext>::Initialize(
- service_factory, client_handle.Pass());
+ void Initialize(
+ ServiceConnector<TestServiceImpl, TestContext>* service_connector,
+ ScopedMessagePipeHandle client_handle) {
+ ServiceConnection<TestService, TestServiceImpl, TestContext>::Initialize(
+ service_connector, client_handle.Pass());
++context()->num_impls;
}
};
@@ -99,8 +100,8 @@ class ServiceManagerTest : public testing::Test, public ServiceLoader {
const GURL& url,
ScopedShellHandle shell_handle) OVERRIDE {
test_app_.reset(new Application(shell_handle.Pass()));
- test_app_->AddServiceFactory(
- new ServiceFactory<TestServiceImpl, TestContext>(&context_));
+ test_app_->AddServiceConnector(
+ new ServiceConnector<TestServiceImpl, TestContext>(&context_));
}
virtual void OnServiceError(ServiceManager* manager,