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/render_view_test.h" | 8 #include "chrome/test/base/render_view_test.h" |
9 #include "printing/print_job_constants.h" | 9 #include "printing/print_job_constants.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
14 | 14 |
15 #if defined(OS_WIN) || defined(OS_MACOSX) | 15 #if defined(OS_WIN) || defined(OS_MACOSX) |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "printing/image.h" | 17 #include "printing/image.h" |
18 | 18 |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 LoadHTML(kPrintPreviewHTML); | 401 LoadHTML(kPrintPreviewHTML); |
402 | 402 |
403 // An empty dictionary should fail. | 403 // An empty dictionary should fail. |
404 DictionaryValue empty_dict; | 404 DictionaryValue empty_dict; |
405 PrintWebViewHelper::Get(view_)->OnPrintForPrintPreview(empty_dict); | 405 PrintWebViewHelper::Get(view_)->OnPrintForPrintPreview(empty_dict); |
406 | 406 |
407 VerifyPrintFailed(true); | 407 VerifyPrintFailed(true); |
408 VerifyPagesPrinted(false); | 408 VerifyPagesPrinted(false); |
409 } | 409 } |
410 #endif // !defined(OS_CHROMEOS) | 410 #endif // !defined(OS_CHROMEOS) |
OLD | NEW |