OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "base/message_loop/message_loop.h" |
5 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
6 #include "build/build_config.h" | 7 #include "build/build_config.h" |
7 #include "content/browser/frame_host/frame_tree.h" | 8 #include "content/browser/frame_host/frame_tree.h" |
8 #include "content/browser/site_per_process_browsertest.h" | 9 #include "content/browser/site_per_process_browsertest.h" |
9 #include "content/browser/web_contents/web_contents_impl.h" | 10 #include "content/browser/web_contents/web_contents_impl.h" |
10 #include "content/public/browser/browser_context.h" | 11 #include "content/public/browser/browser_context.h" |
11 #include "content/public/browser/devtools_agent_host.h" | 12 #include "content/public/browser/devtools_agent_host.h" |
12 #include "content/public/browser/download_manager.h" | 13 #include "content/public/browser/download_manager.h" |
13 #include "content/public/test/content_browser_test_utils.h" | 14 #include "content/public/test/content_browser_test_utils.h" |
14 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 ASSERT_TRUE(NavigateToURLAndExpectNoCommit(shell(), cross_site_url)); | 254 ASSERT_TRUE(NavigateToURLAndExpectNoCommit(shell(), cross_site_url)); |
254 | 255 |
255 // Check that client is still responding after not committed navigation | 256 // Check that client is still responding after not committed navigation |
256 // is finished. | 257 // is finished. |
257 agent->DispatchProtocolMessage(&client, message); | 258 agent->DispatchProtocolMessage(&client, message); |
258 client.WaitForReply(); | 259 client.WaitForReply(); |
259 ASSERT_TRUE(agent->DetachClient(&client)); | 260 ASSERT_TRUE(agent->DetachClient(&client)); |
260 } | 261 } |
261 | 262 |
262 } // namespace content | 263 } // namespace content |
OLD | NEW |