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

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

Issue 12223091: Split testing_pref_service.h/.cc into two parts, generic vs. Chrome-specific. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 // 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.h" 11 #include "base/message_loop.h"
12 #include "base/process_util.h" 12 #include "base/process_util.h"
13 #include "base/rand_util.h" 13 #include "base/rand_util.h"
14 #include "base/test/multiprocess_test.h" 14 #include "base/test/multiprocess_test.h"
15 #include "base/test/test_timeouts.h" 15 #include "base/test/test_timeouts.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" 17 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h"
18 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 18 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
19 #include "chrome/browser/profiles/profile_keyed_service.h" 19 #include "chrome/browser/profiles/profile_keyed_service.h"
20 #include "chrome/browser/service/service_process_control.h" 20 #include "chrome/browser/service/service_process_control.h"
21 #include "chrome/browser/ui/startup/startup_browser_creator.h" 21 #include "chrome/browser/ui/startup/startup_browser_creator.h"
22 #include "chrome/common/chrome_switches.h" 22 #include "chrome/common/chrome_switches.h"
23 #include "chrome/common/pref_names.h" 23 #include "chrome/common/pref_names.h"
24 #include "chrome/common/service_messages.h" 24 #include "chrome/common/service_messages.h"
25 #include "chrome/common/service_process_util.h" 25 #include "chrome/common/service_process_util.h"
26 #include "chrome/service/service_ipc_server.h" 26 #include "chrome/service/service_ipc_server.h"
27 #include "chrome/service/service_process.h" 27 #include "chrome/service/service_process.h"
28 #include "chrome/test/base/test_launcher_utils.h" 28 #include "chrome/test/base/test_launcher_utils.h"
29 #include "chrome/test/base/testing_browser_process.h" 29 #include "chrome/test/base/testing_browser_process.h"
30 #include "chrome/test/base/testing_pref_service.h" 30 #include "chrome/test/base/testing_pref_service_syncable.h"
31 #include "chrome/test/base/testing_profile.h" 31 #include "chrome/test/base/testing_profile.h"
32 #include "chrome/test/base/testing_profile_manager.h" 32 #include "chrome/test/base/testing_profile_manager.h"
33 #include "chrome/test/base/ui_test_utils.h" 33 #include "chrome/test/base/ui_test_utils.h"
34 #include "content/public/browser/notification_service.h" 34 #include "content/public/browser/notification_service.h"
35 #include "content/public/test/test_browser_thread.h" 35 #include "content/public/test/test_browser_thread.h"
36 #include "ipc/ipc_descriptors.h" 36 #include "ipc/ipc_descriptors.h"
37 #include "ipc/ipc_multiprocess_test.h" 37 #include "ipc/ipc_multiprocess_test.h"
38 #include "ipc/ipc_switches.h" 38 #include "ipc/ipc_switches.h"
39 #include "testing/gmock/include/gmock/gmock.h" 39 #include "testing/gmock/include/gmock/gmock.h"
40 #include "testing/gtest/include/gtest/gtest.h" 40 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 // No expectations on run_loop being true here; that would be a race 537 // No expectations on run_loop being true here; that would be a race
538 // condition. 538 // condition.
539 if (run_loop) 539 if (run_loop)
540 MessageLoop::current()->Run(); 540 MessageLoop::current()->Run();
541 541
542 EXPECT_EQ("", prefs->GetString(prefs::kCloudPrintEmail)); 542 EXPECT_EQ("", prefs->GetString(prefs::kCloudPrintEmail));
543 543
544 ShutdownAndWaitForExitWithTimeout(handle); 544 ShutdownAndWaitForExitWithTimeout(handle);
545 profile_manager.DeleteTestingProfile("StartBrowserWithPolicy"); 545 profile_manager.DeleteTestingProfile("StartBrowserWithPolicy");
546 } 546 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698