OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ | 5 #ifndef CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ |
6 #define CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ | 6 #define CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
12 #include "chromeos/cryptohome/homedir_methods.h" | 12 #include "chromeos/cryptohome/homedir_methods.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 | 14 |
15 namespace cryptohome { | 15 namespace cryptohome { |
16 | 16 |
17 class CHROMEOS_EXPORT MockHomedirMethods : public HomedirMethods { | 17 class CHROMEOS_EXPORT MockHomedirMethods : public HomedirMethods { |
18 public: | 18 public: |
19 MockHomedirMethods(); | 19 MockHomedirMethods(); |
20 virtual ~MockHomedirMethods(); | 20 virtual ~MockHomedirMethods(); |
21 | 21 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void DoCallback(const Callback& callback); | 59 void DoCallback(const Callback& callback); |
60 void DoGetDataCallback(const GetKeyDataCallback& callback); | 60 void DoGetDataCallback(const GetKeyDataCallback& callback); |
61 void DoMountCallback(const MountCallback& callback); | 61 void DoMountCallback(const MountCallback& callback); |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods); | 63 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace cryptohome | 66 } // namespace cryptohome |
67 | 67 |
68 #endif // CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ | 68 #endif // CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ |
OLD | NEW |