| 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 "chrome/browser/chromeos/login/ownership_service.h" | 5 #include "chrome/browser/chromeos/login/ownership_service.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/scoped_temp_dir.h" | 13 #include "base/scoped_temp_dir.h" |
| 14 #include "crypto/nss_util.h" | |
| 15 #include "crypto/rsa_private_key.h" | |
| 16 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h" | 14 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h" |
| 17 #include "chrome/browser/chromeos/login/owner_manager_unittest.h" | 15 #include "chrome/browser/chromeos/login/owner_manager_unittest.h" |
| 18 #include "content/browser/browser_thread.h" | 16 #include "content/browser/browser_thread.h" |
| 17 #include "crypto/nss_util.h" |
| 18 #include "crypto/rsa_private_key.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 21 |
| 22 using ::crypto::RSAPrivateKey; | 22 using ::crypto::RSAPrivateKey; |
| 23 using ::testing::DoAll; | 23 using ::testing::DoAll; |
| 24 using ::testing::Eq; | 24 using ::testing::Eq; |
| 25 using ::testing::Invoke; | 25 using ::testing::Invoke; |
| 26 using ::testing::Return; | 26 using ::testing::Return; |
| 27 using ::testing::SetArgumentPointee; | 27 using ::testing::SetArgumentPointee; |
| 28 using ::testing::_; | 28 using ::testing::_; |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 .WillOnce(Return(false)) | 214 .WillOnce(Return(false)) |
| 215 .RetiresOnSaturation(); | 215 .RetiresOnSaturation(); |
| 216 | 216 |
| 217 MockKeyUser delegate(OwnerManager::OPERATION_FAILED); | 217 MockKeyUser delegate(OwnerManager::OPERATION_FAILED); |
| 218 service_->StartVerifyAttempt(data, sig, &delegate); | 218 service_->StartVerifyAttempt(data, sig, &delegate); |
| 219 | 219 |
| 220 message_loop_.Run(); | 220 message_loop_.Run(); |
| 221 } | 221 } |
| 222 | 222 |
| 223 } // namespace chromeos | 223 } // namespace chromeos |
| OLD | NEW |