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

Side by Side Diff: content/browser/renderer_host/render_process_host_browsertest.cc

Issue 2844063003: Migrate RenderFrameImpl to use BinderRegistry. (Closed)
Patch Set: . Created 3 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/browser/renderer_host/render_process_host_impl.h" 9 #include "content/browser/renderer_host/render_process_host_impl.h"
10 #include "content/common/child_process_messages.h" 10 #include "content/common/child_process_messages.h"
11 #include "content/public/browser/render_frame_host.h" 11 #include "content/public/browser/render_frame_host.h"
12 #include "content/public/browser/render_process_host.h" 12 #include "content/public/browser/render_process_host.h"
13 #include "content/public/browser/render_process_host_observer.h" 13 #include "content/public/browser/render_process_host_observer.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 #include "content/public/common/content_switches.h" 15 #include "content/public/common/content_switches.h"
16 #include "content/public/common/url_constants.h" 16 #include "content/public/common/url_constants.h"
17 #include "content/public/test/content_browser_test.h" 17 #include "content/public/test/content_browser_test.h"
18 #include "content/public/test/content_browser_test_utils.h" 18 #include "content/public/test/content_browser_test_utils.h"
19 #include "content/public/test/test_service.mojom.h" 19 #include "content/public/test/test_service.mojom.h"
20 #include "content/shell/browser/shell.h" 20 #include "content/shell/browser/shell.h"
21 #include "media/base/bind_to_current_loop.h" 21 #include "media/base/bind_to_current_loop.h"
22 #include "media/base/test_data_util.h" 22 #include "media/base/test_data_util.h"
23 #include "net/test/embedded_test_server/embedded_test_server.h" 23 #include "net/test/embedded_test_server/embedded_test_server.h"
24 #include "services/service_manager/public/cpp/interface_provider.h"
25 #include "services/service_manager/public/cpp/interface_registry.h"
26 24
27 #if defined(OS_WIN) 25 #if defined(OS_WIN)
28 #include "base/win/windows_version.h" 26 #include "base/win/windows_version.h"
29 #endif 27 #endif
30 28
31 namespace content { 29 namespace content {
32 namespace { 30 namespace {
33 31
34 int RenderProcessHostCount() { 32 int RenderProcessHostCount() {
35 content::RenderProcessHost::iterator hosts = 33 content::RenderProcessHost::iterator hosts =
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // Verify shutdown went as expected. 322 // Verify shutdown went as expected.
325 EXPECT_EQ(0, rph->get_audio_stream_count_for_testing()); 323 EXPECT_EQ(0, rph->get_audio_stream_count_for_testing());
326 EXPECT_EQ(1, process_exits_); 324 EXPECT_EQ(1, process_exits_);
327 EXPECT_EQ(0, host_destructions_); 325 EXPECT_EQ(0, host_destructions_);
328 if (!host_destructions_) 326 if (!host_destructions_)
329 rph->RemoveObserver(this); 327 rph->RemoveObserver(this);
330 } 328 }
331 329
332 } // namespace 330 } // namespace
333 } // namespace content 331 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698