OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/gfx/gdi_util.h" | 7 #include "base/gfx/gdi_util.h" |
8 #include "skia/ext/platform_device.h" | 8 #include "skia/ext/platform_device.h" |
9 #include "base/gfx/png_decoder.h" | 9 #include "base/gfx/png_decoder.h" |
10 #include "base/gfx/png_encoder.h" | 10 #include "base/gfx/png_encoder.h" |
11 #include "base/simple_thread.h" | 11 #include "base/simple_thread.h" |
12 #include "base/win_util.h" | 12 #include "base/win_util.h" |
13 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
14 #include "chrome/test/automation/browser_proxy.h" | 14 #include "chrome/test/automation/browser_proxy.h" |
15 #include "chrome/test/automation/tab_proxy.h" | 15 #include "chrome/test/automation/tab_proxy.h" |
16 #include "chrome/test/automation/window_proxy.h" | 16 #include "chrome/test/automation/window_proxy.h" |
17 #include "chrome/test/ui/ui_test.h" | 17 #include "chrome/test/ui/ui_test.h" |
18 #include "chrome/browser/printing/printing_test.h" | |
19 #include "net/url_request/url_request_unittest.h" | 18 #include "net/url_request/url_request_unittest.h" |
| 19 #include "printing/printing_test.h" |
20 #include "printing/native_metafile.h" | 20 #include "printing/native_metafile.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const wchar_t* const kGenerateSwitch = L"print-layout-generate"; | 24 const wchar_t* const kGenerateSwitch = L"print-layout-generate"; |
25 const wchar_t kDocRoot[] = L"chrome/test/data"; | 25 const wchar_t kDocRoot[] = L"chrome/test/data"; |
26 | 26 |
27 // Lightweight raw-bitmap management. The image, once initialized, is immuable. | 27 // Lightweight raw-bitmap management. The image, once initialized, is immuable. |
28 // It is mainly used for comparison. | 28 // It is mainly used for comparison. |
29 class Image { | 29 class Image { |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 | 615 |
616 // Force a navigation elsewhere to verify that it's fine with it. | 616 // Force a navigation elsewhere to verify that it's fine with it. |
617 url = server->TestServerPage("files/printing/test1.html"); | 617 url = server->TestServerPage("files/printing/test1.html"); |
618 EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, | 618 EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, |
619 tab_proxy->NavigateToURL(url)); | 619 tab_proxy->NavigateToURL(url)); |
620 } | 620 } |
621 CloseBrowserAndServer(); | 621 CloseBrowserAndServer(); |
622 | 622 |
623 EXPECT_EQ(0., CompareWithResult(L"iframe")) << L"iframe"; | 623 EXPECT_EQ(0., CompareWithResult(L"iframe")) << L"iframe"; |
624 } | 624 } |
OLD | NEW |