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

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

Issue 2844063003: Migrate RenderFrameImpl to use BinderRegistry. (Closed)
Patch Set: . Created 3 years, 8 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/embedded_worker_test_helper.h" 5 #include "content/browser/service_worker/embedded_worker_test_helper.h"
6 6
7 #include <map> 7 #include <map>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 16 matching lines...) Expand all
27 #include "content/common/background_fetch/background_fetch_types.h" 27 #include "content/common/background_fetch/background_fetch_types.h"
28 #include "content/common/service_worker/embedded_worker_messages.h" 28 #include "content/common/service_worker/embedded_worker_messages.h"
29 #include "content/common/service_worker/embedded_worker_start_params.h" 29 #include "content/common/service_worker/embedded_worker_start_params.h"
30 #include "content/common/service_worker/service_worker_messages.h" 30 #include "content/common/service_worker/service_worker_messages.h"
31 #include "content/common/service_worker/service_worker_utils.h" 31 #include "content/common/service_worker/service_worker_utils.h"
32 #include "content/public/common/push_event_payload.h" 32 #include "content/public/common/push_event_payload.h"
33 #include "content/public/test/mock_render_process_host.h" 33 #include "content/public/test/mock_render_process_host.h"
34 #include "content/public/test/test_browser_context.h" 34 #include "content/public/test/test_browser_context.h"
35 #include "mojo/public/cpp/bindings/interface_request.h" 35 #include "mojo/public/cpp/bindings/interface_request.h"
36 #include "mojo/public/cpp/bindings/strong_binding.h" 36 #include "mojo/public/cpp/bindings/strong_binding.h"
37 #include "services/service_manager/public/cpp/interface_provider.h"
38 #include "services/service_manager/public/cpp/interface_registry.h"
39 #include "services/service_manager/public/interfaces/interface_provider.mojom.h"
40 #include "testing/gtest/include/gtest/gtest.h" 37 #include "testing/gtest/include/gtest/gtest.h"
41 38
42 namespace content { 39 namespace content {
43 40
44 namespace { 41 namespace {
45 42
46 class MockServiceWorkerDispatcherHost : public ServiceWorkerDispatcherHost { 43 class MockServiceWorkerDispatcherHost : public ServiceWorkerDispatcherHost {
47 public: 44 public:
48 MockServiceWorkerDispatcherHost(int process_id, 45 MockServiceWorkerDispatcherHost(int process_id,
49 ResourceContext* resource_context, 46 ResourceContext* resource_context,
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 base::Passed(&app_request), base::Passed(&response_callback), 801 base::Passed(&app_request), base::Passed(&response_callback),
805 base::Passed(&callback))); 802 base::Passed(&callback)));
806 } 803 }
807 804
808 EmbeddedWorkerRegistry* EmbeddedWorkerTestHelper::registry() { 805 EmbeddedWorkerRegistry* EmbeddedWorkerTestHelper::registry() {
809 DCHECK(context()); 806 DCHECK(context());
810 return context()->embedded_worker_registry(); 807 return context()->embedded_worker_registry();
811 } 808 }
812 809
813 } // namespace content 810 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698