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

Unified Diff: chrome/browser/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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/cryptohome/mock_async_method_caller.h
diff --git a/chrome/browser/chromeos/cryptohome/mock_async_method_caller.h b/chrome/browser/chromeos/cryptohome/mock_async_method_caller.h
deleted file mode 100644
index b5d95e65f3c07f9139ba17cad11d376c6f5f669a..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/cryptohome/mock_async_method_caller.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_
-#define CHROME_BROWSER_CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "chrome/browser/chromeos/cryptohome/async_method_caller.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace cryptohome {
-
-class MockAsyncMethodCaller : public AsyncMethodCaller {
- public:
- MockAsyncMethodCaller();
- virtual ~MockAsyncMethodCaller();
-
- void SetUp(bool success, MountError return_code);
-
- MOCK_METHOD3(AsyncCheckKey, void(const std::string& user_email,
- const std::string& passhash,
- Callback callback));
- MOCK_METHOD4(AsyncMigrateKey, void(const std::string& user_email,
- const std::string& old_hash,
- const std::string& new_hash,
- Callback callback));
- MOCK_METHOD4(AsyncMount, void(const std::string& user_email,
- const std::string& passhash,
- const bool create_if_missing,
- Callback callback));
- MOCK_METHOD1(AsyncMountGuest, void(Callback callback));
- MOCK_METHOD2(AsyncRemove, void(const std::string& user_email,
- Callback callback));
-
- private:
- bool success_;
- MountError return_code_;
-
- void DoCallback(Callback callback);
-
- DISALLOW_COPY_AND_ASSIGN(MockAsyncMethodCaller);
-};
-
-} // namespace cryptohome
-
-#endif // CHROME_BROWSER_CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_

Powered by Google App Engine
This is Rietveld 408576698