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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc

Issue 12253004: Moving last generic Prefs implementation files to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge LKGR 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 #include <string> 5 #include <string>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/prefs/testing_pref_service.h"
10 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" 11 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h"
11 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 12 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
12 #include "chrome/browser/service/service_process_control.h" 13 #include "chrome/browser/service/service_process_control.h"
13 #include "chrome/browser/ui/startup/startup_browser_creator.h" 14 #include "chrome/browser/ui/startup/startup_browser_creator.h"
14 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
15 #include "chrome/common/cloud_print/cloud_print_proxy_info.h" 16 #include "chrome/common/cloud_print/cloud_print_proxy_info.h"
16 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
17 #include "chrome/common/service_messages.h" 18 #include "chrome/common/service_messages.h"
18 #include "chrome/test/base/testing_browser_process.h" 19 #include "chrome/test/base/testing_browser_process.h"
19 #include "chrome/test/base/testing_pref_service.h"
20 #include "chrome/test/base/testing_pref_service_syncable.h" 20 #include "chrome/test/base/testing_pref_service_syncable.h"
21 #include "chrome/test/base/testing_profile.h" 21 #include "chrome/test/base/testing_profile.h"
22 #include "chrome/test/base/testing_profile_manager.h" 22 #include "chrome/test/base/testing_profile_manager.h"
23 #include "content/public/browser/browser_thread.h" 23 #include "content/public/browser/browser_thread.h"
24 #include "content/public/test/test_browser_thread.h" 24 #include "content/public/test/test_browser_thread.h"
25 #include "testing/gmock/include/gmock/gmock.h" 25 #include "testing/gmock/include/gmock/gmock.h"
26 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
27 27
28 using ::testing::Assign; 28 using ::testing::Assign;
29 using ::testing::AtMost; 29 using ::testing::AtMost;
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 CloudPrintProxyServiceFactory::GetInstance()-> 444 CloudPrintProxyServiceFactory::GetInstance()->
445 SetTestingFactory(&profile_, TestCloudPrintProxyServiceFactory); 445 SetTestingFactory(&profile_, TestCloudPrintProxyServiceFactory);
446 446
447 CommandLine command_line(CommandLine::NO_PROGRAM); 447 CommandLine command_line(CommandLine::NO_PROGRAM);
448 command_line.AppendSwitch(switches::kCheckCloudPrintConnectorPolicy); 448 command_line.AppendSwitch(switches::kCheckCloudPrintConnectorPolicy);
449 449
450 EXPECT_FALSE(LaunchBrowser(command_line, &profile_)); 450 EXPECT_FALSE(LaunchBrowser(command_line, &profile_));
451 MessageLoop::current()->RunUntilIdle(); 451 MessageLoop::current()->RunUntilIdle();
452 } 452 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_service_unittest.cc ('k') | chrome/browser/profiles/profile_info_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698