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

Side by Side Diff: chromeos/cryptohome/mock_async_method_caller.h

Issue 10878061: chromeos: Move src/chrome/browser/chromeos/cryptohome to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 months 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) 2012 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_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_ 5 #ifndef CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_
6 #define CHROME_BROWSER_CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_ 6 #define CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "chrome/browser/chromeos/cryptohome/async_method_caller.h" 11 #include "base/callback.h"
12 #include "chromeos/cryptohome/async_method_caller.h"
12 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
13 14
14 namespace cryptohome { 15 namespace cryptohome {
15 16
16 class MockAsyncMethodCaller : public AsyncMethodCaller { 17 class MockAsyncMethodCaller : public AsyncMethodCaller {
17 public: 18 public:
18 MockAsyncMethodCaller(); 19 MockAsyncMethodCaller();
19 virtual ~MockAsyncMethodCaller(); 20 virtual ~MockAsyncMethodCaller();
20 21
21 void SetUp(bool success, MountError return_code); 22 void SetUp(bool success, MountError return_code);
(...skipping 17 matching lines...) Expand all
39 bool success_; 40 bool success_;
40 MountError return_code_; 41 MountError return_code_;
41 42
42 void DoCallback(Callback callback); 43 void DoCallback(Callback callback);
43 44
44 DISALLOW_COPY_AND_ASSIGN(MockAsyncMethodCaller); 45 DISALLOW_COPY_AND_ASSIGN(MockAsyncMethodCaller);
45 }; 46 };
46 47
47 } // namespace cryptohome 48 } // namespace cryptohome
48 49
49 #endif // CHROME_BROWSER_CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_ 50 #endif // CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_
OLDNEW
« no previous file with comments | « chromeos/cryptohome/async_method_caller.cc ('k') | chromeos/cryptohome/mock_async_method_caller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698