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

Unified Diff: chrome/browser/chromeos/settings/device_settings_test_helper.cc

Issue 1693383003: ChromeOS cryptohome should be able to use gaia id as user identifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests. Created 4 years, 10 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/settings/device_settings_test_helper.cc
diff --git a/chrome/browser/chromeos/settings/device_settings_test_helper.cc b/chrome/browser/chromeos/settings/device_settings_test_helper.cc
index 48b6aee6af2005b20459a2893f5ec82b6e426d34..63701dbf93c48ba3f5452ce757bb5a84b8635bad 100644
--- a/chrome/browser/chromeos/settings/device_settings_test_helper.cc
+++ b/chrome/browser/chromeos/settings/device_settings_test_helper.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/chromeos/settings/device_settings_service.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
+#include "chromeos/cryptohome/cryptohome_parameters.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "components/ownership/mock_owner_key_util.h"
#include "content/public/browser/browser_thread.h"
@@ -111,7 +112,8 @@ void DeviceSettingsTestHelper::EmitLoginPromptVisible() {}
void DeviceSettingsTestHelper::RestartJob(
const std::vector<std::string>& argv) {}
-void DeviceSettingsTestHelper::StartSession(const std::string& user_email) {}
+void DeviceSettingsTestHelper::StartSession(
+ const cryptohome::Identification& cryptohome_id) {}
void DeviceSettingsTestHelper::StopSession() {}
@@ -136,12 +138,11 @@ void DeviceSettingsTestHelper::RetrieveDevicePolicy(
}
void DeviceSettingsTestHelper::RetrievePolicyForUser(
- const std::string& username,
- const RetrievePolicyCallback& callback) {
-}
+ const cryptohome::Identification& cryptohome_id,
+ const RetrievePolicyCallback& callback) {}
std::string DeviceSettingsTestHelper::BlockingRetrievePolicyForUser(
- const std::string& username) {
+ const cryptohome::Identification& cryptohome_id) {
return "";
}
@@ -160,10 +161,9 @@ void DeviceSettingsTestHelper::StoreDevicePolicy(
}
void DeviceSettingsTestHelper::StorePolicyForUser(
- const std::string& username,
+ const cryptohome::Identification& cryptohome_id,
const std::string& policy_blob,
- const StorePolicyCallback& callback) {
-}
+ const StorePolicyCallback& callback) {}
void DeviceSettingsTestHelper::StoreDeviceLocalAccountPolicy(
const std::string& account_id,
@@ -174,7 +174,7 @@ void DeviceSettingsTestHelper::StoreDeviceLocalAccountPolicy(
}
void DeviceSettingsTestHelper::SetFlagsForUser(
- const std::string& account_id,
+ const cryptohome::Identification& cryptohome_id,
const std::vector<std::string>& flags) {}
void DeviceSettingsTestHelper::GetServerBackedStateKeys(

Powered by Google App Engine
This is Rietveld 408576698