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

Unified Diff: chrome/browser/chromeos/policy/device_local_account_browsertest.cc

Issue 14179007: Move cryptohome_library to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/policy/device_local_account_browsertest.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
index 84aeed0be46fbebdfbe552ea8de2fad344407224..ade19b4326bd68139bbfb9d36225aaecb46f4b6e 100644
--- a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
@@ -236,7 +236,10 @@ class FakeCryptohomeClient : public chromeos::CryptohomeClient {
virtual void AsyncRemove(const std::string& username,
const AsyncMethodCallback& callback) OVERRIDE {}
virtual bool GetSystemSalt(std::vector<uint8>* salt) OVERRIDE {
- return false;
+ const char kFakeSystemSalt[] = "fake_system_salt";
+ salt->assign(kFakeSystemSalt,
+ kFakeSystemSalt + arraysize(kFakeSystemSalt) - 1);
+ return true;
}
virtual void GetSanitizedUsername(
const std::string& username,

Powered by Google App Engine
This is Rietveld 408576698