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

Unified Diff: chromeos/cryptohome/mock_cryptohome_library.h

Issue 25975002: cryptohome: Move Encrypt/DecryptWithSystemSalt() out of CryptohomeLibrary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years, 2 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 | « chromeos/cryptohome/cryptohome_library.cc ('k') | chromeos/cryptohome/mock_cryptohome_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/cryptohome/mock_cryptohome_library.h
diff --git a/chromeos/cryptohome/mock_cryptohome_library.h b/chromeos/cryptohome/mock_cryptohome_library.h
deleted file mode 100644
index 5a08ac0a9a5e1ab02d1bfd25fb4c28b11ede9c21..0000000000000000000000000000000000000000
--- a/chromeos/cryptohome/mock_cryptohome_library.h
+++ /dev/null
@@ -1,35 +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 CHROMEOS_CRYPTOHOME_MOCK_CRYPTOHOME_LIBRARY_H_
-#define CHROMEOS_CRYPTOHOME_MOCK_CRYPTOHOME_LIBRARY_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "chromeos/cryptohome/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_METHOD1(EncryptWithSystemSalt, std::string(const std::string&));
- MOCK_METHOD1(DecryptWithSystemSalt, std::string(const std::string&));
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockCryptohomeLibrary);
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_CRYPTOHOME_MOCK_CRYPTOHOME_LIBRARY_H_
« no previous file with comments | « chromeos/cryptohome/cryptohome_library.cc ('k') | chromeos/cryptohome/mock_cryptohome_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698