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

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

Issue 14691006: Move SpawnedTestServer to its own subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort gyp Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/test/test_file_util.h" 12 #include "base/test/test_file_util.h"
13 #include "base/threading/simple_thread.h" 13 #include "base/threading/simple_thread.h"
14 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
15 #include "chrome/browser/printing/print_job.h" 15 #include "chrome/browser/printing/print_job.h"
16 #include "chrome/browser/printing/print_view_manager.h" 16 #include "chrome/browser/printing/print_view_manager.h"
17 #include "chrome/browser/ui/browser.h" 17 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/browser_commands.h" 18 #include "chrome/browser/ui/browser_commands.h"
19 #include "chrome/browser/ui/tabs/tab_strip_model.h" 19 #include "chrome/browser/ui/tabs/tab_strip_model.h"
20 #include "chrome/common/chrome_notification_types.h" 20 #include "chrome/common/chrome_notification_types.h"
21 #include "chrome/common/chrome_paths.h" 21 #include "chrome/common/chrome_paths.h"
22 #include "chrome/common/chrome_switches.h" 22 #include "chrome/common/chrome_switches.h"
23 #include "chrome/test/base/in_process_browser_test.h" 23 #include "chrome/test/base/in_process_browser_test.h"
24 #include "chrome/test/base/ui_test_utils.h" 24 #include "chrome/test/base/ui_test_utils.h"
25 #include "content/public/browser/notification_observer.h" 25 #include "content/public/browser/notification_observer.h"
26 #include "content/public/browser/notification_registrar.h" 26 #include "content/public/browser/notification_registrar.h"
27 #include "content/public/browser/notification_service.h" 27 #include "content/public/browser/notification_service.h"
28 #include "net/test/spawned_test_server.h" 28 #include "net/test/spawned_test_server/spawned_test_server.h"
29 #include "printing/image.h" 29 #include "printing/image.h"
30 #include "printing/printing_test.h" 30 #include "printing/printing_test.h"
31 31
32 namespace { 32 namespace {
33 33
34 using printing::Image; 34 using printing::Image;
35 35
36 const char kGenerateSwitch[] = "print-layout-generate"; 36 const char kGenerateSwitch[] = "print-layout-generate";
37 37
38 class PrintingLayoutTest : public PrintingTest<InProcessBrowserTest>, 38 class PrintingLayoutTest : public PrintingTest<InProcessBrowserTest>,
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 457
458 // Force a navigation elsewhere to verify that it's fine with it. 458 // Force a navigation elsewhere to verify that it's fine with it.
459 url = test_server()->GetURL("files/printing/test1.html"); 459 url = test_server()->GetURL("files/printing/test1.html");
460 ui_test_utils::NavigateToURL(browser(), url); 460 ui_test_utils::NavigateToURL(browser(), url);
461 } 461 }
462 chrome::CloseWindow(browser()); 462 chrome::CloseWindow(browser());
463 content::RunAllPendingInMessageLoop(); 463 content::RunAllPendingInMessageLoop();
464 464
465 EXPECT_EQ(0., CompareWithResult(L"iframe")) << L"iframe"; 465 EXPECT_EQ(0., CompareWithResult(L"iframe")) << L"iframe";
466 } 466 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/test/local_policy_test_server.cc ('k') | chrome/browser/referrer_policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698