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

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

Issue 1832813002: Add mojom module suffix in .mojom files in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Tom's comment Created 4 years, 9 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
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 88660df34284733fd5c7679cef6ecc30563c5870..49a86ea1f855fab91eaf2d31830ac6f0ffe35bf2 100644
--- a/content/browser/service_worker/service_worker_version_unittest.cc
+++ b/content/browser/service_worker/service_worker_version_unittest.cc
@@ -162,9 +162,9 @@ base::Time GetYesterday() {
base::TimeDelta::FromSeconds(1);
}
-class TestMojoServiceImpl : public TestMojoService {
+class TestMojoServiceImpl : public mojom::TestMojoService {
public:
- static void Create(mojo::InterfaceRequest<TestMojoService> request) {
+ static void Create(mojo::InterfaceRequest<mojom::TestMojoService> request) {
new TestMojoServiceImpl(std::move(request));
}
@@ -177,10 +177,11 @@ class TestMojoServiceImpl : public TestMojoService {
}
private:
- explicit TestMojoServiceImpl(mojo::InterfaceRequest<TestMojoService> request)
+ explicit TestMojoServiceImpl(
+ mojo::InterfaceRequest<mojom::TestMojoService> request)
: binding_(this, std::move(request)) {}
- mojo::StrongBinding<TestMojoService> binding_;
+ mojo::StrongBinding<mojom::TestMojoService> binding_;
};
} // namespace
@@ -1198,8 +1199,8 @@ TEST_F(ServiceWorkerVersionWithMojoTest, MojoService) {
int request_id = version_->StartRequest(
ServiceWorkerMetrics::EventType::SYNC,
CreateReceiverOnCurrentThread(&status, runner->QuitClosure()));
- base::WeakPtr<TestMojoService> service =
- version_->GetMojoServiceForRequest<TestMojoService>(request_id);
+ base::WeakPtr<mojom::TestMojoService> service =
+ version_->GetMojoServiceForRequest<mojom::TestMojoService>(request_id);
service->DoSomething(runner->QuitClosure());
runner->Run();
@@ -1223,8 +1224,8 @@ TEST_F(ServiceWorkerVersionTest, NonExistentMojoService) {
int request_id = version_->StartRequest(
ServiceWorkerMetrics::EventType::SYNC,
CreateReceiverOnCurrentThread(&status, runner->QuitClosure()));
- base::WeakPtr<TestMojoService> service =
- version_->GetMojoServiceForRequest<TestMojoService>(request_id);
+ base::WeakPtr<mojom::TestMojoService> service =
+ version_->GetMojoServiceForRequest<mojom::TestMojoService>(request_id);
service->DoSomething(runner->QuitClosure());
runner->Run();
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698