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

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: Fixed android sandbox browser tests 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 class TestMojoServiceImpl : public mojom::TestMojoService { 157 class TestMojoServiceImpl : public mojom::TestMojoService {
158 public: 158 public:
159 static void Create(mojo::InterfaceRequest<mojom::TestMojoService> request) { 159 static void Create(mojo::InterfaceRequest<mojom::TestMojoService> request) {
160 new TestMojoServiceImpl(std::move(request)); 160 new TestMojoServiceImpl(std::move(request));
161 } 161 }
162 162
163 void DoSomething(const DoSomethingCallback& callback) override { 163 void DoSomething(const DoSomethingCallback& callback) override {
164 callback.Run(); 164 callback.Run();
165 } 165 }
166 166
167 void DoTerminateProcess(const DoTerminateProcessCallback& callback) override {
168 NOTREACHED();
169 }
170
171 void CreateFolder(const CreateFolderCallback& callback) override {
172 NOTREACHED();
173 }
174
167 void GetRequestorName(const GetRequestorNameCallback& callback) override { 175 void GetRequestorName(const GetRequestorNameCallback& callback) override {
168 callback.Run(mojo::String("")); 176 callback.Run(mojo::String(""));
169 } 177 }
170 178
171 private: 179 private:
172 explicit TestMojoServiceImpl( 180 explicit TestMojoServiceImpl(
173 mojo::InterfaceRequest<mojom::TestMojoService> request) 181 mojo::InterfaceRequest<mojom::TestMojoService> request)
174 : binding_(this, std::move(request)) {} 182 : binding_(this, std::move(request)) {}
175 183
176 mojo::StrongBinding<mojom::TestMojoService> binding_; 184 mojo::StrongBinding<mojom::TestMojoService> binding_;
(...skipping 1286 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
« no previous file with comments | « components/safe_json/safe_json_parser_impl.cc ('k') | content/browser/utility_process_mojo_client_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698