Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: chrome/browser/printing/printing_layout_uitest.cc

Issue 3012021: CommandLine: add a CopySwitchesFrom() for copying from another CommandLine (Closed)
Patch Set: minor cleanups Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/pref_service_uitest.cc ('k') | chrome/browser/process_singleton_uitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/simple_thread.h" 7 #include "base/simple_thread.h"
8 #include "base/test/test_file_util.h" 8 #include "base/test/test_file_util.h"
9 #include "base/win_util.h" 9 #include "base/win_util.h"
10 #include "chrome/common/chrome_paths.h" 10 #include "chrome/common/chrome_paths.h"
(...skipping 10 matching lines...) Expand all
21 namespace { 21 namespace {
22 22
23 using printing::Image; 23 using printing::Image;
24 24
25 const char kGenerateSwitch[] = "print-layout-generate"; 25 const char kGenerateSwitch[] = "print-layout-generate";
26 const wchar_t kDocRoot[] = L"chrome/test/data"; 26 const wchar_t kDocRoot[] = L"chrome/test/data";
27 27
28 class PrintingLayoutTest : public PrintingTest<UITest> { 28 class PrintingLayoutTest : public PrintingTest<UITest> {
29 public: 29 public:
30 PrintingLayoutTest() { 30 PrintingLayoutTest() {
31 emf_path_ = browser_directory_; 31 emf_path_ = browser_directory_.AppendASCII("metafile_dumps");
32 emf_path_ = emf_path_.AppendASCII("metafile_dumps"); 32 launch_arguments_.AppendSwitchPath("debug-print", emf_path_);
33 launch_arguments_.AppendSwitchWithValue("debug-print",
34 L'"' + emf_path_.value() + L'"');
35 show_window_ = true; 33 show_window_ = true;
36 } 34 }
37 35
38 virtual void SetUp() { 36 virtual void SetUp() {
39 // Make sure there is no left overs. 37 // Make sure there is no left overs.
40 CleanupDumpDirectory(); 38 CleanupDumpDirectory();
41 UITest::SetUp(); 39 UITest::SetUp();
42 } 40 }
43 41
44 virtual void TearDown() { 42 virtual void TearDown() {
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 423
426 // Force a navigation elsewhere to verify that it's fine with it. 424 // Force a navigation elsewhere to verify that it's fine with it.
427 url = server->TestServerPage("files/printing/test1.html"); 425 url = server->TestServerPage("files/printing/test1.html");
428 EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, 426 EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS,
429 tab_proxy->NavigateToURL(url)); 427 tab_proxy->NavigateToURL(url));
430 } 428 }
431 CloseBrowserAndServer(); 429 CloseBrowserAndServer();
432 430
433 EXPECT_EQ(0., CompareWithResult(L"iframe")) << L"iframe"; 431 EXPECT_EQ(0., CompareWithResult(L"iframe")) << L"iframe";
434 } 432 }
OLDNEW
« no previous file with comments | « chrome/browser/pref_service_uitest.cc ('k') | chrome/browser/process_singleton_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698