Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Unified Diff: services/service_manager/public/cpp/lib/service_test.cc

Issue 2597983003: Add tests for how LocalStorageContextMojo interacts with file/leveldb services. (Closed)
Patch Set: reapply change that got lost during rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/unittests_manifest.json ('k') | services/service_manager/public/cpp/service_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/service_manager/public/cpp/lib/service_test.cc
diff --git a/services/service_manager/public/cpp/lib/service_test.cc b/services/service_manager/public/cpp/lib/service_test.cc
index 4031c0c5e3eeec896725265a5e7dd44cc720317f..054c8a8992b8321b1a3074910fbb450aa25c8002 100644
--- a/services/service_manager/public/cpp/lib/service_test.cc
+++ b/services/service_manager/public/cpp/lib/service_test.cc
@@ -31,8 +31,8 @@ bool ServiceTestClient::OnConnect(const ServiceInfo& remote_info,
ServiceTest::ServiceTest() {}
-ServiceTest::ServiceTest(const std::string& test_name)
- : test_name_(test_name) {}
+ServiceTest::ServiceTest(const std::string& test_name, bool init_edk)
+ : test_name_(test_name), init_edk_(init_edk) {}
ServiceTest::~ServiceTest() {}
@@ -62,7 +62,9 @@ void ServiceTest::SetUp() {
message_loop_ = CreateMessageLoop();
background_service_manager_.reset(
new service_manager::BackgroundServiceManager);
- background_service_manager_->Init(nullptr);
+ auto init_params = base::MakeUnique<BackgroundServiceManager::InitParams>();
+ init_params->init_edk = init_edk_;
+ background_service_manager_->Init(std::move(init_params));
// Create the service manager connection. We don't proceed until we get our
// Service's OnStart() method is called.
« no previous file with comments | « content/test/unittests_manifest.json ('k') | services/service_manager/public/cpp/service_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698