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

Unified Diff: chrome/browser/chromeos/cros/mock_cryptohome_library.h

Issue 14179007: Move cryptohome_library to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/cros/mock_cryptohome_library.h
diff --git a/chrome/browser/chromeos/cros/mock_cryptohome_library.h b/chrome/browser/chromeos/cros/mock_cryptohome_library.h
deleted file mode 100644
index f24e5087b92a62c6e16c81f4994df9e36dcf7f35..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/cros/mock_cryptohome_library.h
+++ /dev/null
@@ -1,47 +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_CROS_MOCK_CRYPTOHOME_LIBRARY_H_
-#define CHROME_BROWSER_CHROMEOS_CROS_MOCK_CRYPTOHOME_LIBRARY_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "chrome/browser/chromeos/cros/cryptohome_library.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-using ::testing::Invoke;
-using ::testing::WithArgs;
-using ::testing::_;
-
-namespace chromeos {
-
-class MockCryptohomeLibrary : public CryptohomeLibrary {
- public:
- MockCryptohomeLibrary();
- virtual ~MockCryptohomeLibrary();
- MOCK_METHOD0(GetSystemSalt, std::string(void));
-
- MOCK_METHOD0(TpmIsReady, bool(void));
- MOCK_METHOD0(TpmIsEnabled, bool(void));
- MOCK_METHOD0(TpmIsOwned, bool(void));
- MOCK_METHOD0(TpmIsBeingOwned, bool(void));
- MOCK_METHOD1(TpmGetPassword, bool(std::string* password));
- MOCK_METHOD0(TpmCanAttemptOwnership, void(void));
- MOCK_METHOD0(TpmClearStoredPassword, void(void));
-
- MOCK_METHOD2(InstallAttributesGet, bool(const std::string&, std::string*));
- MOCK_METHOD2(InstallAttributesSet, bool(const std::string&,
- const std::string&));
- MOCK_METHOD0(InstallAttributesFinalize, bool(void));
- MOCK_METHOD0(InstallAttributesIsReady, bool(void));
- MOCK_METHOD0(InstallAttributesIsInvalid, bool(void));
- MOCK_METHOD0(InstallAttributesIsFirstInstall, bool(void));
- private:
- DISALLOW_COPY_AND_ASSIGN(MockCryptohomeLibrary);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_CRYPTOHOME_LIBRARY_H_

Powered by Google App Engine
This is Rietveld 408576698