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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_UNITTEST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_UNITTEST_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_UNITTEST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_UNITTEST_H_ |
7 | 7 |
8 #include "chrome/browser/chromeos/login/owner_manager.h" | 8 #include "chrome/browser/chromeos/login/owner_manager.h" |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
17 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
19 #include "content/common/notification_service.h" | |
20 #include "content/public/browser/notification_types.h" | 19 #include "content/public/browser/notification_types.h" |
21 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
23 | 22 |
24 | 23 |
25 namespace chromeos { | 24 namespace chromeos { |
26 class MockKeyLoadObserver : public content::NotificationObserver { | 25 class MockKeyLoadObserver : public content::NotificationObserver { |
27 public: | 26 public: |
28 explicit MockKeyLoadObserver(base::WaitableEvent* e); | 27 explicit MockKeyLoadObserver(base::WaitableEvent* e); |
29 virtual ~MockKeyLoadObserver(); | 28 virtual ~MockKeyLoadObserver(); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 const std::vector<uint8> expected_sig_; | 83 const std::vector<uint8> expected_sig_; |
85 | 84 |
86 private: | 85 private: |
87 base::WaitableEvent* event_; | 86 base::WaitableEvent* event_; |
88 DISALLOW_COPY_AND_ASSIGN(MockSigner); | 87 DISALLOW_COPY_AND_ASSIGN(MockSigner); |
89 }; | 88 }; |
90 | 89 |
91 } // namespace chromeos | 90 } // namespace chromeos |
92 | 91 |
93 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_UNITTEST_H_ | 92 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_UNITTEST_H_ |
OLD | NEW |