OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "chrome/common/chrome_switches.h" | 7 #include "chrome/common/chrome_switches.h" |
8 #include "chrome/common/print_messages.h" | 8 #include "chrome/common/print_messages.h" |
9 #include "chrome/renderer/printing/mock_printer.h" | 9 #include "chrome/renderer/printing/mock_printer.h" |
10 #include "chrome/renderer/printing/print_web_view_helper.h" | 10 #include "chrome/renderer/printing/print_web_view_helper.h" |
11 #include "chrome/test/base/chrome_render_view_test.h" | 11 #include "chrome/test/base/chrome_render_view_test.h" |
12 #include "content/public/renderer/render_view.h" | 12 #include "content/public/renderer/render_view.h" |
13 #include "ipc/ipc_listener.h" | 13 #include "ipc/ipc_listener.h" |
14 #include "printing/print_job_constants.h" | 14 #include "printing/print_job_constants.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/WebKit/public/platform/WebString.h" | 16 #include "third_party/WebKit/public/platform/WebString.h" |
17 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 17 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
18 #include "third_party/WebKit/public/web/WebRange.h" | 18 #include "third_party/WebKit/public/web/WebRange.h" |
19 #include "third_party/WebKit/public/web/WebView.h" | 19 #include "third_party/WebKit/public/web/WebView.h" |
20 | 20 |
21 #if defined(OS_WIN) || defined(OS_MACOSX) | 21 #if defined(OS_WIN) || defined(OS_MACOSX) |
22 #include "base/file_util.h" | 22 #include "base/files/file_util.h" |
23 #include "printing/image.h" | 23 #include "printing/image.h" |
24 | 24 |
25 using blink::WebFrame; | 25 using blink::WebFrame; |
26 using blink::WebLocalFrame; | 26 using blink::WebLocalFrame; |
27 using blink::WebString; | 27 using blink::WebString; |
28 #endif | 28 #endif |
29 | 29 |
30 namespace printing { | 30 namespace printing { |
31 | 31 |
32 namespace { | 32 namespace { |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 CreatePrintSettingsDictionary(&dict); | 907 CreatePrintSettingsDictionary(&dict); |
908 OnPrintForPrintPreview(dict); | 908 OnPrintForPrintPreview(dict); |
909 | 909 |
910 VerifyPrintFailed(true); | 910 VerifyPrintFailed(true); |
911 VerifyPagesPrinted(false); | 911 VerifyPagesPrinted(false); |
912 } | 912 } |
913 | 913 |
914 #endif // !defined(OS_CHROMEOS) | 914 #endif // !defined(OS_CHROMEOS) |
915 | 915 |
916 } // namespace printing | 916 } // namespace printing |
OLD | NEW |