| 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/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/scoped_temp_dir.h" | 9 #include "base/scoped_temp_dir.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "chrome/browser/chromeos/login/signed_settings.h" | 33 #include "chrome/browser/chromeos/login/signed_settings.h" |
| 34 #include "chrome/browser/chromeos/system/statistics_provider.h" | 34 #include "chrome/browser/chromeos/system/statistics_provider.h" |
| 35 #include "chrome/browser/policy/device_policy_cache.h" | 35 #include "chrome/browser/policy/device_policy_cache.h" |
| 36 #include "chrome/browser/policy/enterprise_install_attributes.h" | 36 #include "chrome/browser/policy/enterprise_install_attributes.h" |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 namespace policy { | 39 namespace policy { |
| 40 | 40 |
| 41 namespace em = enterprise_management; | 41 namespace em = enterprise_management; |
| 42 | 42 |
| 43 using content::BrowserThread; |
| 43 using testing::AnyNumber; | 44 using testing::AnyNumber; |
| 44 using testing::DoAll; | 45 using testing::DoAll; |
| 45 using testing::Invoke; | 46 using testing::Invoke; |
| 46 using testing::Mock; | 47 using testing::Mock; |
| 47 using testing::Return; | 48 using testing::Return; |
| 48 using testing::SetArgPointee; | 49 using testing::SetArgPointee; |
| 49 using testing::_; | 50 using testing::_; |
| 50 | 51 |
| 51 namespace { | 52 namespace { |
| 52 | 53 |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 helper.CompleteRetrieve(chromeos::SignedSettings::NOT_FOUND); | 861 helper.CompleteRetrieve(chromeos::SignedSettings::NOT_FOUND); |
| 861 helper.SetData("\xff"); | 862 helper.SetData("\xff"); |
| 862 helper.SetPolicy(); | 863 helper.SetPolicy(); |
| 863 ExpectSample(kMetricPolicyFetchInvalidPolicy); | 864 ExpectSample(kMetricPolicyFetchInvalidPolicy); |
| 864 EXPECT_TRUE(CheckSamples()); | 865 EXPECT_TRUE(CheckSamples()); |
| 865 } | 866 } |
| 866 | 867 |
| 867 #endif | 868 #endif |
| 868 | 869 |
| 869 } // namespace policy | 870 } // namespace policy |
| OLD | NEW |