OLD | NEW |
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 "content/common/child_process_messages.h" | 5 #include "content/common/child_process_messages.h" |
6 #include "content/public/browser/notification_types.h" | 6 #include "content/public/browser/notification_types.h" |
7 #include "content/public/browser/render_process_host.h" | 7 #include "content/public/browser/render_process_host.h" |
8 #include "content/public/browser/render_view_host.h" | 8 #include "content/public/browser/render_view_host.h" |
9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
10 #include "content/public/test/test_notification_tracker.h" | 10 #include "content/public/test/test_notification_tracker.h" |
11 #include "content/shell/shell.h" | 11 #include "content/shell/browser/shell.h" |
12 #include "content/test/content_browser_test.h" | 12 #include "content/test/content_browser_test.h" |
13 #include "content/test/content_browser_test_utils.h" | 13 #include "content/test/content_browser_test_utils.h" |
14 #include "net/test/embedded_test_server/embedded_test_server.h" | 14 #include "net/test/embedded_test_server/embedded_test_server.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 namespace { | 17 namespace { |
18 | 18 |
19 class RenderProcessHostTest : public ContentBrowserTest {}; | 19 class RenderProcessHostTest : public ContentBrowserTest {}; |
20 | 20 |
21 // Sometimes the renderer process's ShutdownRequest (corresponding to the | 21 // Sometimes the renderer process's ShutdownRequest (corresponding to the |
(...skipping 19 matching lines...) Expand all Loading... |
41 // If the RPH sends a mistaken ChildProcessMsg_Shutdown, the renderer process | 41 // If the RPH sends a mistaken ChildProcessMsg_Shutdown, the renderer process |
42 // will take some time to die. Wait for a second tab to load in order to give | 42 // will take some time to die. Wait for a second tab to load in order to give |
43 // that time to happen. | 43 // that time to happen. |
44 NavigateToURL(CreateBrowser(), test_url); | 44 NavigateToURL(CreateBrowser(), test_url); |
45 | 45 |
46 EXPECT_EQ(0U, termination_watcher.size()); | 46 EXPECT_EQ(0U, termination_watcher.size()); |
47 } | 47 } |
48 | 48 |
49 } // namespace | 49 } // namespace |
50 } // namespace content | 50 } // namespace content |
OLD | NEW |