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

Unified Diff: chrome/browser/chromeos/dbus/mock_cryptohome_client.h

Issue 9838085: Move files inside chrome/browser/chromeos/dbus to chromeos/dbus (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 8 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/dbus/mock_cryptohome_client.h
diff --git a/chrome/browser/chromeos/dbus/mock_cryptohome_client.h b/chrome/browser/chromeos/dbus/mock_cryptohome_client.h
deleted file mode 100644
index e313e414b486ea7472433ac552c246bc44162b32..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/dbus/mock_cryptohome_client.h
+++ /dev/null
@@ -1,70 +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_DBUS_MOCK_CRYPTOHOME_CLIENT_H_
-#define CHROME_BROWSER_CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_
-#pragma once
-
-#include <string>
-
-#include "chrome/browser/chromeos/dbus/cryptohome_client.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace chromeos {
-
-class MockCryptohomeClient : public CryptohomeClient {
- public:
- MockCryptohomeClient();
- virtual ~MockCryptohomeClient();
-
- MOCK_METHOD1(SetAsyncCallStatusHandler, void(AsyncCallStatusHandler handler));
- MOCK_METHOD0(ResetAsyncCallStatusHandler, void());
- MOCK_METHOD1(IsMounted, bool(bool* is_mounted));
- MOCK_METHOD1(Unmount, bool(bool* success));
- MOCK_METHOD3(AsyncCheckKey,
- void(const std::string& username,
- const std::string& key,
- base::Callback<void(int async_id)> callback));
- MOCK_METHOD4(AsyncMigrateKey,
- void(const std::string& username,
- const std::string& from_key,
- const std::string& to_key,
- base::Callback<void(int async_id)> callback));
- MOCK_METHOD2(AsyncRemove, void(const std::string& username,
- base::Callback<void(int async_id)> callback));
- MOCK_METHOD1(GetSystemSalt, bool(std::vector<uint8>* salt));
- MOCK_METHOD4(AsyncMount, void(const std::string& username,
- const std::string& key,
- const bool create_if_missing,
- base::Callback<void(int async_id)> callback));
- MOCK_METHOD1(AsyncMountGuest,
- void(base::Callback<void(int async_id)> callback));
- MOCK_METHOD1(TpmIsReady, bool(bool* ready));
- MOCK_METHOD1(TpmIsEnabled, void(BoolMethodCallback callback));
- MOCK_METHOD1(CallTpmIsEnabledAndBlock, bool(bool* enabled));
- MOCK_METHOD1(TpmGetPassword, bool(std::string* password));
- MOCK_METHOD1(TpmIsOwned, bool(bool* owned));
- MOCK_METHOD1(TpmIsBeingOwned, bool(bool* owning));
- MOCK_METHOD0(TpmCanAttemptOwnership, bool());
- MOCK_METHOD0(TpmClearStoredPassword, bool());
- MOCK_METHOD1(Pkcs11IsTpmTokenReady, void(BoolMethodCallback callback));
- MOCK_METHOD1(Pkcs11GetTpmTokenInfo,
- void(Pkcs11GetTpmTokenInfoCallback callback));
- MOCK_METHOD3(InstallAttributesGet,
- bool(const std::string& name,
- std::vector<uint8>* value,
- bool* successful));
- MOCK_METHOD3(InstallAttributesSet,
- bool(const std::string& name,
- const std::vector<uint8>& value,
- bool* successful));
- MOCK_METHOD1(InstallAttributesFinalize, bool(bool* successful));
- MOCK_METHOD1(InstallAttributesIsReady, bool(bool* is_ready));
- MOCK_METHOD1(InstallAttributesIsInvalid, bool(bool* is_invalid));
- MOCK_METHOD1(InstallAttributesIsFirstInstall, bool(bool* is_first_install));
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_
« no previous file with comments | « chrome/browser/chromeos/dbus/mock_cros_disks_client.cc ('k') | chrome/browser/chromeos/dbus/mock_cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698