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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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"
(...skipping 14 matching lines...) Expand all
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.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/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_switches.h" 37 #include "ipc/ipc_switches.h"
38 #include "testing/gmock/include/gmock/gmock.h" 38 #include "testing/gmock/include/gmock/gmock.h"
39 #include "testing/gtest/include/gtest/gtest.h" 39 #include "testing/gtest/include/gtest/gtest.h"
40 #include "testing/multiprocess_func_list.h" 40 #include "testing/multiprocess_func_list.h"
41 41
42 #if defined(OS_MACOSX) 42 #if defined(OS_MACOSX)
43 #include "chrome/common/mac/mock_launchd.h" 43 #include "chrome/common/mac/mock_launchd.h"
44 #endif 44 #endif
45 #if defined(OS_POSIX) 45 #if defined(OS_POSIX)
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // No expectations on run_loop being true here; that would be a race 532 // No expectations on run_loop being true here; that would be a race
533 // condition. 533 // condition.
534 if (run_loop) 534 if (run_loop)
535 MessageLoop::current()->Run(); 535 MessageLoop::current()->Run();
536 536
537 EXPECT_EQ("", prefs->GetString(prefs::kCloudPrintEmail)); 537 EXPECT_EQ("", prefs->GetString(prefs::kCloudPrintEmail));
538 538
539 ShutdownAndWaitForExitWithTimeout(handle); 539 ShutdownAndWaitForExitWithTimeout(handle);
540 profile_manager.DeleteTestingProfile("StartBrowserWithPolicy"); 540 profile_manager.DeleteTestingProfile("StartBrowserWithPolicy");
541 } 541 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698