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

Side by Side Diff: chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc

Issue 57383010: Rename service subdir under chrome/browser to service_process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 // Create a service process that uses a Mock to respond to the browser in order 5 // Create a service process that uses a Mock to respond to the browser in order
6 // to test launching the browser using the cloud print policy check command 6 // to test launching the browser using the cloud print policy check command
7 // line switch. 7 // line switch.
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/process/kill.h" 12 #include "base/process/kill.h"
13 #include "base/rand_util.h" 13 #include "base/rand_util.h"
14 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
15 #include "base/test/multiprocess_test.h" 15 #include "base/test/multiprocess_test.h"
16 #include "base/test/test_timeouts.h" 16 #include "base/test/test_timeouts.h"
17 #include "base/time/default_tick_clock.h" 17 #include "base/time/default_tick_clock.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "chrome/browser/prefs/browser_prefs.h" 19 #include "chrome/browser/prefs/browser_prefs.h"
20 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" 20 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h"
21 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 21 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
22 #include "chrome/browser/service/service_process_control.h" 22 #include "chrome/browser/service_process/service_process_control.h"
23 #include "chrome/browser/ui/startup/startup_browser_creator.h" 23 #include "chrome/browser/ui/startup/startup_browser_creator.h"
24 #include "chrome/common/chrome_switches.h" 24 #include "chrome/common/chrome_switches.h"
25 #include "chrome/common/pref_names.h" 25 #include "chrome/common/pref_names.h"
26 #include "chrome/common/service_messages.h" 26 #include "chrome/common/service_messages.h"
27 #include "chrome/common/service_process_util.h" 27 #include "chrome/common/service_process_util.h"
28 #include "chrome/service/service_ipc_server.h" 28 #include "chrome/service/service_ipc_server.h"
29 #include "chrome/service/service_process.h" 29 #include "chrome/service/service_process.h"
30 #include "chrome/test/base/test_launcher_utils.h" 30 #include "chrome/test/base/test_launcher_utils.h"
31 #include "chrome/test/base/testing_browser_process.h" 31 #include "chrome/test/base/testing_browser_process.h"
32 #include "chrome/test/base/testing_io_thread_state.h" 32 #include "chrome/test/base/testing_io_thread_state.h"
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 // condition. 595 // condition.
596 if (should_run_loop) 596 if (should_run_loop)
597 run_loop.Run(); 597 run_loop.Run();
598 598
599 EXPECT_EQ("", prefs->GetString(prefs::kCloudPrintEmail)); 599 EXPECT_EQ("", prefs->GetString(prefs::kCloudPrintEmail));
600 600
601 ShutdownAndWaitForExitWithTimeout(handle); 601 ShutdownAndWaitForExitWithTimeout(handle);
602 content::RunAllPendingInMessageLoop(); 602 content::RunAllPendingInMessageLoop();
603 profile_manager.DeleteTestingProfile("StartBrowserWithPolicy"); 603 profile_manager.DeleteTestingProfile("StartBrowserWithPolicy");
604 } 604 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc ('k') | chrome/browser/service/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698