OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MOCK_OWNER_KEY_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_MOCK_OWNER_KEY_UTILS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_OWNER_KEY_UTILS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_MOCK_OWNER_KEY_UTILS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "chrome/browser/chromeos/settings/owner_key_utils.h" |
13 #include "crypto/rsa_private_key.h" | 14 #include "crypto/rsa_private_key.h" |
14 #include "chrome/browser/chromeos/login/owner_key_utils.h" | |
15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 | 19 |
20 class MockKeyUtils : public OwnerKeyUtils { | 20 class MockKeyUtils : public OwnerKeyUtils { |
21 public: | 21 public: |
22 MockKeyUtils(); | 22 MockKeyUtils(); |
23 | 23 |
24 MOCK_METHOD2(ImportPublicKey, bool(const FilePath& key_file, | 24 MOCK_METHOD2(ImportPublicKey, bool(const FilePath& key_file, |
(...skipping 26 matching lines...) Expand all Loading... |
51 // If it's never called, |transient_| remains our problem. | 51 // If it's never called, |transient_| remains our problem. |
52 virtual OwnerKeyUtils* CreateOwnerKeyUtils() OVERRIDE; | 52 virtual OwnerKeyUtils* CreateOwnerKeyUtils() OVERRIDE; |
53 | 53 |
54 private: | 54 private: |
55 scoped_refptr<MockKeyUtils> transient_; | 55 scoped_refptr<MockKeyUtils> transient_; |
56 DISALLOW_COPY_AND_ASSIGN(MockInjector); | 56 DISALLOW_COPY_AND_ASSIGN(MockInjector); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace chromeos | 59 } // namespace chromeos |
60 | 60 |
61 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_OWNER_KEY_UTILS_H_ | 61 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_MOCK_OWNER_KEY_UTILS_H_ |
OLD | NEW |