OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 const bool ignore_alpha_; | 198 const bool ignore_alpha_; |
199 | 199 |
200 DISALLOW_EVIL_CONSTRUCTORS(Image); | 200 DISALLOW_EVIL_CONSTRUCTORS(Image); |
201 }; | 201 }; |
202 | 202 |
203 class PrintingLayoutTest : public PrintingTest<UITest> { | 203 class PrintingLayoutTest : public PrintingTest<UITest> { |
204 public: | 204 public: |
205 PrintingLayoutTest() { | 205 PrintingLayoutTest() { |
206 emf_path_ = browser_directory_; | 206 emf_path_ = browser_directory_; |
207 file_util::AppendToPath(&emf_path_, L"emf_dumps"); | 207 file_util::AppendToPath(&emf_path_, L"emf_dumps"); |
208 launch_arguments_.AppendSwitchWithValue(L"debug-print", L'"' + emf_path_ + L
'"'); | 208 launch_arguments_.AppendSwitchWithValue(L"debug-print", |
| 209 L'"' + emf_path_ + L'"'); |
209 show_window_ = true; | 210 show_window_ = true; |
210 } | 211 } |
211 | 212 |
212 virtual void SetUp() { | 213 virtual void SetUp() { |
213 // Make sure there is no left overs. | 214 // Make sure there is no left overs. |
214 CleanupDumpDirectory(); | 215 CleanupDumpDirectory(); |
215 UITest::SetUp(); | 216 UITest::SetUp(); |
216 } | 217 } |
217 | 218 |
218 virtual void TearDown() { | 219 virtual void TearDown() { |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 | 619 |
619 // Force a navigation elsewhere to verify that it's fine with it. | 620 // Force a navigation elsewhere to verify that it's fine with it. |
620 url = server->TestServerPage("files/printing/test1.html"); | 621 url = server->TestServerPage("files/printing/test1.html"); |
621 EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, | 622 EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, |
622 tab_proxy->NavigateToURL(url)); | 623 tab_proxy->NavigateToURL(url)); |
623 } | 624 } |
624 CloseBrowserAndServer(); | 625 CloseBrowserAndServer(); |
625 | 626 |
626 EXPECT_EQ(0., CompareWithResult(L"iframe")) << L"iframe"; | 627 EXPECT_EQ(0., CompareWithResult(L"iframe")) << L"iframe"; |
627 } | 628 } |
OLD | NEW |