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

Unified Diff: content/browser/service_worker/service_worker_version_unittest.cc

Issue 2387263002: Rename MojoShellContext -> ServiceManagerContext. (Closed)
Patch Set: . Created 4 years, 2 months 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
Index: content/browser/service_worker/service_worker_version_unittest.cc
diff --git a/content/browser/service_worker/service_worker_version_unittest.cc b/content/browser/service_worker/service_worker_version_unittest.cc
index 7a2c36d36696727a3e08260d73e196abb660b87c..494934473caee105cd6110c628626c975820bae1 100644
--- a/content/browser/service_worker/service_worker_version_unittest.cc
+++ b/content/browser/service_worker/service_worker_version_unittest.cc
@@ -21,7 +21,7 @@
#include "content/common/service_worker/service_worker_utils.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_browser_thread_bundle.h"
-#include "content/public/test/test_mojo_service.mojom.h"
+#include "content/public/test/test_service.mojom.h"
#include "content/public/test/test_utils.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "services/shell/public/cpp/interface_registry.h"
@@ -160,10 +160,10 @@ base::Time GetYesterday() {
base::TimeDelta::FromSeconds(1);
}
-class TestMojoServiceImpl : public mojom::TestMojoService {
+class TestServiceImpl : public mojom::TestService {
public:
- static void Create(mojo::InterfaceRequest<mojom::TestMojoService> request) {
- mojo::MakeStrongBinding(base::WrapUnique(new TestMojoServiceImpl),
+ static void Create(mojo::InterfaceRequest<mojom::TestService> request) {
+ mojo::MakeStrongBinding(base::WrapUnique(new TestServiceImpl),
std::move(request));
}
@@ -189,7 +189,7 @@ class TestMojoServiceImpl : public mojom::TestMojoService {
}
private:
- explicit TestMojoServiceImpl() {}
+ explicit TestServiceImpl() {}
};
} // namespace
@@ -375,7 +375,7 @@ class MessageReceiverMojoTestService : public MessageReceiver {
~MessageReceiverMojoTestService() override {}
void OnSetupMojo(int thread_id, shell::InterfaceRegistry* registry) override {
- registry->AddInterface(base::Bind(&TestMojoServiceImpl::Create));
+ registry->AddInterface(base::Bind(&TestServiceImpl::Create));
}
private:
@@ -1204,8 +1204,8 @@ TEST_F(ServiceWorkerVersionWithMojoTest, MojoService) {
int request_id = version_->StartRequest(
ServiceWorkerMetrics::EventType::SYNC,
CreateReceiverOnCurrentThread(&status, runner->QuitClosure()));
- base::WeakPtr<mojom::TestMojoService> service =
- version_->GetMojoServiceForRequest<mojom::TestMojoService>(request_id);
+ base::WeakPtr<mojom::TestService> service =
+ version_->GetMojoServiceForRequest<mojom::TestService>(request_id);
service->DoSomething(runner->QuitClosure());
runner->Run();
@@ -1230,8 +1230,8 @@ TEST_F(ServiceWorkerVersionTest, NonExistentMojoService) {
int request_id = version_->StartRequest(
ServiceWorkerMetrics::EventType::SYNC,
CreateReceiverOnCurrentThread(&status, runner->QuitClosure()));
- base::WeakPtr<mojom::TestMojoService> service =
- version_->GetMojoServiceForRequest<mojom::TestMojoService>(request_id);
+ base::WeakPtr<mojom::TestService> service =
+ version_->GetMojoServiceForRequest<mojom::TestService>(request_id);
service->DoSomething(runner->QuitClosure());
runner->Run();
« no previous file with comments | « content/browser/service_manager/service_manager_context.cc ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698