| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
| 6 #include "chrome/common/print_messages.h" | 6 #include "chrome/common/print_messages.h" |
| 7 #include "chrome/renderer/print_web_view_helper.h" | 7 #include "chrome/renderer/print_web_view_helper.h" |
| 8 #include "chrome/test/base/chrome_render_view_test.h" | 8 #include "chrome/test/base/chrome_render_view_test.h" |
| 9 #include "content/public/renderer/render_view.h" | 9 #include "content/public/renderer/render_view.h" |
| 10 #include "printing/print_job_constants.h" | 10 #include "printing/print_job_constants.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 15 | 15 |
| 16 #if defined(OS_WIN) || defined(OS_MACOSX) | 16 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
| 18 #include "printing/image.h" | 18 #include "printing/image.h" |
| 19 | 19 |
| 20 using WebKit::WebFrame; | 20 using WebKit::WebFrame; |
| 21 using WebKit::WebString; | 21 using WebKit::WebString; |
| 22 #endif | 22 #endif |
| 23 | 23 |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 // Fill in some dummy values. | 536 // Fill in some dummy values. |
| 537 DictionaryValue dict; | 537 DictionaryValue dict; |
| 538 CreatePrintSettingsDictionary(&dict); | 538 CreatePrintSettingsDictionary(&dict); |
| 539 OnPrintForPrintPreview(dict); | 539 OnPrintForPrintPreview(dict); |
| 540 | 540 |
| 541 VerifyPrintFailed(true); | 541 VerifyPrintFailed(true); |
| 542 VerifyPagesPrinted(false); | 542 VerifyPagesPrinted(false); |
| 543 } | 543 } |
| 544 | 544 |
| 545 #endif // !defined(OS_CHROMEOS) | 545 #endif // !defined(OS_CHROMEOS) |
| OLD | NEW |