| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser/printing/print_dialog_cloud.h" | 5 #include "chrome/browser/printing/print_dialog_cloud.h" |
| 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" | 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" |
| 7 | 7 |
| 8 #include <functional> | 8 #include <functional> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/singleton.h" | 13 #include "base/singleton.h" |
| 14 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
| 15 #include "chrome/browser/chrome_thread.h" | 15 #include "chrome/browser/chrome_thread.h" |
| 16 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 16 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
| 17 #include "chrome/browser/renderer_host/render_view_host.h" | 17 #include "chrome/browser/renderer_host/render_view_host.h" |
| 18 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" |
| 19 #include "chrome/common/chrome_paths.h" | 19 #include "chrome/common/chrome_paths.h" |
| 20 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
| 21 #include "chrome/test/in_process_browser_test.h" | 21 #include "chrome/test/in_process_browser_test.h" |
| 22 #include "chrome/test/ui_test_utils.h" | 22 #include "chrome/test/ui_test_utils.h" |
| 23 #include "net/url_request/url_request_filter.h" | 23 #include "net/url_request/url_request_filter.h" |
| 24 #include "net/url_request/url_request_test_job.h" | 24 #include "net/url_request/url_request_test_job.h" |
| 25 #include "net/url_request/url_request_unittest.h" |
| 25 | 26 |
| 26 namespace { | 27 namespace { |
| 27 | 28 |
| 28 class TestData { | 29 class TestData { |
| 29 public: | 30 public: |
| 30 TestData() {} | 31 TestData() {} |
| 31 | 32 |
| 32 char* GetTestData() { | 33 char* GetTestData() { |
| 33 if (test_data_.empty()) { | 34 if (test_data_.empty()) { |
| 34 FilePath test_data_directory; | 35 FilePath test_data_directory; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 229 |
| 229 std::wstring window_print(L"window.print()"); | 230 std::wstring window_print(L"window.print()"); |
| 230 browser()->GetSelectedTabContents()->render_view_host()-> | 231 browser()->GetSelectedTabContents()->render_view_host()-> |
| 231 ExecuteJavascriptInWebFrame(std::wstring(), window_print); | 232 ExecuteJavascriptInWebFrame(std::wstring(), window_print); |
| 232 | 233 |
| 233 ui_test_utils::RunMessageLoop(); | 234 ui_test_utils::RunMessageLoop(); |
| 234 | 235 |
| 235 ASSERT_TRUE(Singleton<TestController>()->result()); | 236 ASSERT_TRUE(Singleton<TestController>()->result()); |
| 236 } | 237 } |
| 237 #endif | 238 #endif |
| OLD | NEW |