| OLD | NEW |
| 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 "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" | 5 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
| 17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.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/service_process/service_process_control.h" | 19 #include "chrome/browser/service_process/service_process_control.h" |
| 20 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 20 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
| 21 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
| 22 #include "chrome/common/cloud_print/cloud_print_proxy_info.h" | 22 #include "chrome/common/cloud_print/cloud_print_proxy_info.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/test/base/testing_browser_process.h" | 25 #include "chrome/test/base/testing_browser_process.h" |
| 26 #include "chrome/test/base/testing_profile.h" | 26 #include "chrome/test/base/testing_profile.h" |
| 27 #include "chrome/test/base/testing_profile_manager.h" | 27 #include "chrome/test/base/testing_profile_manager.h" |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 | 442 |
| 443 prefs->RemoveManagedPref(prefs::kCloudPrintProxyEnabled); | 443 prefs->RemoveManagedPref(prefs::kCloudPrintProxyEnabled); |
| 444 EXPECT_EQ(std::string(), prefs->GetString(prefs::kCloudPrintEmail)); | 444 EXPECT_EQ(std::string(), prefs->GetString(prefs::kCloudPrintEmail)); |
| 445 | 445 |
| 446 service.GetMockServiceProcessControl()->SetWillBeEnabledExpectations(); | 446 service.GetMockServiceProcessControl()->SetWillBeEnabledExpectations(); |
| 447 service.EnableForUser(); | 447 service.EnableForUser(); |
| 448 | 448 |
| 449 EXPECT_EQ(MockServiceProcessControl::EnabledUserId(), | 449 EXPECT_EQ(MockServiceProcessControl::EnabledUserId(), |
| 450 prefs->GetString(prefs::kCloudPrintEmail)); | 450 prefs->GetString(prefs::kCloudPrintEmail)); |
| 451 } | 451 } |
| OLD | NEW |