OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/chromeos/login/signed_settings.h" | 5 #include "chrome/browser/chromeos/login/signed_settings.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/nss_util.h" | 9 #include "base/nss_util.h" |
10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
12 #include "chrome/browser/chrome_thread.h" | 12 #include "chrome/browser/chrome_thread.h" |
| 13 #include "chrome/browser/chromeos/cros/cros_library.h" |
13 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h" | 14 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h" |
14 #include "chrome/browser/chromeos/login/mock_ownership_service.h" | 15 #include "chrome/browser/chromeos/login/mock_ownership_service.h" |
15 #include "chrome/browser/chromeos/login/owner_manager_unittest.h" | 16 #include "chrome/browser/chromeos/login/owner_manager_unittest.h" |
16 #include "chrome/browser/chromeos/cros/cros_library.h" | |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 using ::testing::Invoke; | 20 using ::testing::Invoke; |
21 using ::testing::Return; | 21 using ::testing::Return; |
22 using ::testing::_; | 22 using ::testing::_; |
23 | 23 |
24 namespace chromeos { | 24 namespace chromeos { |
25 | 25 |
26 namespace { | 26 namespace { |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 269 |
270 TEST_F(SignedSettingsTest, RetrievePropertyNoKey) { | 270 TEST_F(SignedSettingsTest, RetrievePropertyNoKey) { |
271 FailingRetrievePropertyOp(OwnerManager::KEY_UNAVAILABLE); | 271 FailingRetrievePropertyOp(OwnerManager::KEY_UNAVAILABLE); |
272 } | 272 } |
273 | 273 |
274 TEST_F(SignedSettingsTest, RetrievePropertyFailed) { | 274 TEST_F(SignedSettingsTest, RetrievePropertyFailed) { |
275 FailingRetrievePropertyOp(OwnerManager::OPERATION_FAILED); | 275 FailingRetrievePropertyOp(OwnerManager::OPERATION_FAILED); |
276 } | 276 } |
277 | 277 |
278 } // namespace chromeos | 278 } // namespace chromeos |
OLD | NEW |