Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: chrome/browser/chromeos/login/ownership_service_unittest.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/scoped_temp_dir.h" 13 #include "base/scoped_temp_dir.h"
14 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h" 14 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h"
15 #include "chrome/browser/chromeos/login/owner_manager_unittest.h" 15 #include "chrome/browser/chromeos/login/owner_manager_unittest.h"
16 #include "content/public/browser/notification_service.h" 16 #include "content/public/browser/notification_service.h"
17 #include "content/test/test_browser_thread.h" 17 #include "content/test/test_browser_thread.h"
18 #include "crypto/nss_util.h" 18 #include "crypto/nss_util.h"
19 #include "crypto/rsa_private_key.h" 19 #include "crypto/rsa_private_key.h"
20 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 using content::BrowserThread;
23 using ::crypto::RSAPrivateKey; 24 using ::crypto::RSAPrivateKey;
24 using ::testing::DoAll; 25 using ::testing::DoAll;
25 using ::testing::Eq; 26 using ::testing::Eq;
26 using ::testing::Invoke; 27 using ::testing::Invoke;
27 using ::testing::Return; 28 using ::testing::Return;
28 using ::testing::SetArgumentPointee; 29 using ::testing::SetArgumentPointee;
29 using ::testing::_; 30 using ::testing::_;
30 31
31 32
32 namespace chromeos { 33 namespace chromeos {
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 228
228 base::WaitableEvent event(true, false); 229 base::WaitableEvent event(true, false);
229 MockKeyUser delegate(OwnerManager::OPERATION_FAILED, &event); 230 MockKeyUser delegate(OwnerManager::OPERATION_FAILED, &event);
230 service_->StartVerifyAttempt(data, sig, &delegate); 231 service_->StartVerifyAttempt(data, sig, &delegate);
231 232
232 while (!event.IsSignaled()) 233 while (!event.IsSignaled())
233 message_loop_.RunAllPending(); 234 message_loop_.RunAllPending();
234 } 235 }
235 236
236 } // namespace chromeos 237 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ownership_service.cc ('k') | chrome/browser/chromeos/login/ownership_status_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698