OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.
h" | 8 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.
h" |
9 #include "chrome/browser/chromeos/login/wizard_controller.h" | 9 #include "chrome/browser/chromeos/login/wizard_controller.h" |
10 #include "chrome/browser/chromeos/login/wizard_in_process_browser_test.h" | 10 #include "chrome/browser/chromeos/login/wizard_in_process_browser_test.h" |
11 #include "chrome/browser/policy/cloud_policy_subsystem.h" | 11 #include "chrome/browser/policy/cloud_policy_subsystem.h" |
12 #include "chrome/browser/policy/enterprise_metrics.h" | 12 #include "chrome/browser/policy/enterprise_metrics.h" |
13 #include "chrome/common/net/gaia/gaia_constants.h" | 13 #include "chrome/common/net/gaia/gaia_constants.h" |
14 #include "chrome/common/net/gaia/google_service_auth_error.h" | 14 #include "chrome/common/net/gaia/google_service_auth_error.h" |
15 #include "content/browser/plugin_service.h" | |
16 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 16 #include "content/public/browser/plugin_service.h" |
17 #include "content/test/test_url_fetcher_factory.h" | 17 #include "content/test/test_url_fetcher_factory.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
| 20 using content::PluginService; |
| 21 |
20 namespace chromeos { | 22 namespace chromeos { |
21 | 23 |
22 namespace { | 24 namespace { |
23 | 25 |
24 void assert_handler(const std::string& str) { | 26 void assert_handler(const std::string& str) { |
25 LOG(INFO) << "Previous failure was expected, ignoring."; | 27 LOG(INFO) << "Previous failure was expected, ignoring."; |
26 } | 28 } |
27 | 29 |
28 void QuitMessageLoop() { | 30 void QuitMessageLoop() { |
29 MessageLoop::current()->Quit(); | 31 MessageLoop::current()->Quit(); |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 CheckSample(policy::kMetricEnrollmentNotSupported); | 192 CheckSample(policy::kMetricEnrollmentNotSupported); |
191 } | 193 } |
192 | 194 |
193 IN_PROC_BROWSER_TEST_F(EnterpriseMetricsEnrollmentTest, AuthErrorUnexpected) { | 195 IN_PROC_BROWSER_TEST_F(EnterpriseMetricsEnrollmentTest, AuthErrorUnexpected) { |
194 GoogleServiceAuthError error(GoogleServiceAuthError::REQUEST_CANCELED); | 196 GoogleServiceAuthError error(GoogleServiceAuthError::REQUEST_CANCELED); |
195 screen_->OnClientLoginFailure(error); | 197 screen_->OnClientLoginFailure(error); |
196 CheckSample(policy::kMetricEnrollmentNetworkFailed); | 198 CheckSample(policy::kMetricEnrollmentNetworkFailed); |
197 } | 199 } |
198 | 200 |
199 } // namespace chromeos | 201 } // namespace chromeos |
OLD | NEW |