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/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/scoped_temp_dir.h" | 14 #include "base/scoped_temp_dir.h" |
15 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h" | 15 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h" |
16 #include "chrome/browser/chromeos/login/owner_manager_unittest.h" | 16 #include "chrome/browser/chromeos/login/owner_manager_unittest.h" |
17 #include "content/public/browser/notification_service.h" | 17 #include "content/public/browser/notification_service.h" |
18 #include "content/test/test_browser_thread.h" | 18 #include "content/public/test/test_browser_thread.h" |
19 #include "crypto/nss_util.h" | 19 #include "crypto/nss_util.h" |
20 #include "crypto/rsa_private_key.h" | 20 #include "crypto/rsa_private_key.h" |
21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 using content::BrowserThread; | 24 using content::BrowserThread; |
25 using ::crypto::RSAPrivateKey; | 25 using ::crypto::RSAPrivateKey; |
26 using ::testing::DoAll; | 26 using ::testing::DoAll; |
27 using ::testing::Eq; | 27 using ::testing::Eq; |
28 using ::testing::Invoke; | 28 using ::testing::Invoke; |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 base::WaitableEvent event(true, false); | 230 base::WaitableEvent event(true, false); |
231 MockKeyUser delegate(OwnerManager::OPERATION_FAILED, &event); | 231 MockKeyUser delegate(OwnerManager::OPERATION_FAILED, &event); |
232 service_->StartVerifyAttempt(data, sig, &delegate); | 232 service_->StartVerifyAttempt(data, sig, &delegate); |
233 | 233 |
234 while (!event.IsSignaled()) | 234 while (!event.IsSignaled()) |
235 message_loop_.RunAllPending(); | 235 message_loop_.RunAllPending(); |
236 } | 236 } |
237 | 237 |
238 } // namespace chromeos | 238 } // namespace chromeos |
OLD | NEW |