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

Side by Side Diff: content/browser/service_worker/service_worker_version_unittest.cc

Issue 2049303002: Add the UtilityProcessMojoClient class and convert SafeJsonParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bauerb@ comment Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/service_worker/service_worker_version.h" 5 #include "content/browser/service_worker/service_worker_version.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <tuple> 8 #include <tuple>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 class TestMojoServiceImpl : public mojom::TestMojoService { 158 class TestMojoServiceImpl : public mojom::TestMojoService {
159 public: 159 public:
160 static void Create(mojo::InterfaceRequest<mojom::TestMojoService> request) { 160 static void Create(mojo::InterfaceRequest<mojom::TestMojoService> request) {
161 new TestMojoServiceImpl(std::move(request)); 161 new TestMojoServiceImpl(std::move(request));
162 } 162 }
163 163
164 void DoSomething(const DoSomethingCallback& callback) override { 164 void DoSomething(const DoSomethingCallback& callback) override {
165 callback.Run(); 165 callback.Run();
166 } 166 }
167 167
168 void DoTerminateProcess(const DoTerminateProcessCallback& callback) override {
169 NOTREACHED();
170 }
171
172 void CreateFolder(const CreateFolderCallback& callback) override {
173 NOTREACHED();
174 }
175
168 void GetRequestorName(const GetRequestorNameCallback& callback) override { 176 void GetRequestorName(const GetRequestorNameCallback& callback) override {
169 callback.Run(mojo::String("")); 177 callback.Run(mojo::String(""));
170 } 178 }
171 179
172 private: 180 private:
173 explicit TestMojoServiceImpl( 181 explicit TestMojoServiceImpl(
174 mojo::InterfaceRequest<mojom::TestMojoService> request) 182 mojo::InterfaceRequest<mojom::TestMojoService> request)
175 : binding_(this, std::move(request)) {} 183 : binding_(this, std::move(request)) {}
176 184
177 mojo::StrongBinding<mojom::TestMojoService> binding_; 185 mojo::StrongBinding<mojom::TestMojoService> binding_;
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 helper_->SimulateSendSimpleEventResult( 1471 helper_->SimulateSendSimpleEventResult(
1464 version_->embedded_worker()->embedded_worker_id(), request_id, 1472 version_->embedded_worker()->embedded_worker_id(), request_id,
1465 blink::WebServiceWorkerEventResultRejected); 1473 blink::WebServiceWorkerEventResultRejected);
1466 runner->Run(); 1474 runner->Run();
1467 1475
1468 // Verify callback was called with correct status. 1476 // Verify callback was called with correct status.
1469 EXPECT_EQ(SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED, status); 1477 EXPECT_EQ(SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED, status);
1470 } 1478 }
1471 1479
1472 } // namespace content 1480 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698