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 "chrome/renderer/chrome_content_renderer_client.h" | 5 #include "chrome/renderer/chrome_content_renderer_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/render_messages.h" | 16 #include "chrome/common/render_messages.h" |
17 #include "chrome/renderer/searchbox/searchbox.h" | 17 #include "chrome/renderer/searchbox/searchbox.h" |
18 #include "chrome/test/base/chrome_render_view_test.h" | 18 #include "chrome/test/base/chrome_render_view_test.h" |
19 #include "chrome/test/base/in_process_browser_test.h" | 19 #include "chrome/test/base/in_process_browser_test.h" |
20 #include "chrome/test/base/ui_test_utils.h" | 20 #include "chrome/test/base/ui_test_utils.h" |
21 #include "content/public/child/url_loader_throttle.h" | |
22 #include "content/public/common/content_constants.h" | 21 #include "content/public/common/content_constants.h" |
| 22 #include "content/public/common/url_loader_throttle.h" |
23 #include "content/public/renderer/render_frame.h" | 23 #include "content/public/renderer/render_frame.h" |
24 #include "content/public/renderer/render_view.h" | 24 #include "content/public/renderer/render_view.h" |
25 #include "content/public/test/browser_test_utils.h" | 25 #include "content/public/test/browser_test_utils.h" |
26 #include "content/public/test/mock_render_thread.h" | 26 #include "content/public/test/mock_render_thread.h" |
27 #include "content/public/test/test_utils.h" | 27 #include "content/public/test/test_utils.h" |
28 #include "ipc/ipc_listener.h" | 28 #include "ipc/ipc_listener.h" |
29 #include "ipc/ipc_sender.h" | 29 #include "ipc/ipc_sender.h" |
30 #include "ipc/ipc_test_sink.h" | 30 #include "ipc/ipc_test_sink.h" |
31 #include "net/dns/mock_host_resolver.h" | 31 #include "net/dns/mock_host_resolver.h" |
32 #include "net/test/embedded_test_server/http_request.h" | 32 #include "net/test/embedded_test_server/http_request.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 "http://" + GetParam().host + ":" + port + GetParam().path; | 240 "http://" + GetParam().host + ":" + port + GetParam().path; |
241 EXPECT_TRUE(ExecuteScript(web_contents, | 241 EXPECT_TRUE(ExecuteScript(web_contents, |
242 "appendDataEmbedToDOM('" + video_url + "','" + GetParam().type + "');")); | 242 "appendDataEmbedToDOM('" + video_url + "','" + GetParam().type + "');")); |
243 WaitForYouTubeRequest(); | 243 WaitForYouTubeRequest(); |
244 } | 244 } |
245 | 245 |
246 INSTANTIATE_TEST_CASE_P( | 246 INSTANTIATE_TEST_CASE_P( |
247 FlashEmbeds, | 247 FlashEmbeds, |
248 ChromeContentRendererClientBrowserTest, | 248 ChromeContentRendererClientBrowserTest, |
249 ::testing::ValuesIn(kFlashEmbedsTestData)); | 249 ::testing::ValuesIn(kFlashEmbedsTestData)); |
OLD | NEW |