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

Unified Diff: chrome/browser/chromeos/cros/fake/fake_cryptohome_library.h

Issue 2847072: Green Tree Tactical Force: Revert skrul's bad commits (probably a git-cl bug). (Closed)
Patch Set: Created 10 years, 5 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
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/chromeos/cros/fake/fake_input_method_library.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/fake/fake_cryptohome_library.h
diff --git a/chrome/browser/chromeos/cros/fake/fake_cryptohome_library.h b/chrome/browser/chromeos/cros/fake/fake_cryptohome_library.h
deleted file mode 100644
index e305ea221044fc43cbd1a485c05587b5dac93d95..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/cros/fake/fake_cryptohome_library.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2010 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_FAKE_FAKE_CRYPTOHOME_LIBRARY_H_
-#define CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_CRYPTOHOME_LIBRARY_H_
-
-#include <string>
-
-#include "chrome/browser/chromeos/cros/cryptohome_library.h"
-
-namespace chromeos {
-
-class FakeCryptohomeLibrary : public CryptohomeLibrary {
- public:
- FakeCryptohomeLibrary() {
- // The salt must be non-empty and an even length.
- salt_.push_back(0);
- salt_.push_back(0);
- }
-
- virtual ~FakeCryptohomeLibrary() {}
- virtual bool Mount(const std::string& user_email,
- const std::string& passhash,
- int* error_code) {
- return true;
- }
-
- virtual bool MountForBwsi(int* error_code) {
- return true;
- }
-
- virtual bool CheckKey(const std::string& user_email,
- const std::string& passhash) {
- return true;
- }
-
- virtual bool MigrateKey(const std::string& user_email,
- const std::string& old_hash,
- const std::string& new_hash) {
- return true;
- }
-
- virtual bool Remove(const std::string& user_email) {
- return true;
- }
-
- virtual bool IsMounted() {
- return true;
- }
-
- virtual CryptohomeBlob GetSystemSalt() {
- return salt_;
- }
-
- private:
- CryptohomeBlob salt_;
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_CRYPTOHOME_LIBRARY_H_
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/chromeos/cros/fake/fake_input_method_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698