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

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

Issue 24869003: cryptohome: Move stateless wrapper functions out of CryptohomeLibrary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years, 3 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_cloud_policy_store_chromeos_unittest.cc
diff --git a/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc b/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc
index c5f046095bf6409b34c2bf26018001611b73d09d..82dbd9c706058c5d100d6c25a3942223fcc4d0a0 100644
--- a/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc
+++ b/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc
@@ -35,10 +35,9 @@ class DeviceCloudPolicyStoreChromeOSTest
: public chromeos::DeviceSettingsTestBase {
protected:
DeviceCloudPolicyStoreChromeOSTest()
- : cryptohome_library_(chromeos::CryptohomeLibrary::GetTestImpl()),
- fake_cryptohome_client_(new chromeos::FakeCryptohomeClient()),
+ : fake_cryptohome_client_(new chromeos::FakeCryptohomeClient()),
install_attributes_(new EnterpriseInstallAttributes(
- cryptohome_library_.get(), fake_cryptohome_client_.get())),
+ fake_cryptohome_client_.get())),
store_(new DeviceCloudPolicyStoreChromeOS(&device_settings_service_,
install_attributes_.get())) {
fake_cryptohome_client_->Init(NULL /* no dbus::Bus */);
@@ -96,15 +95,14 @@ class DeviceCloudPolicyStoreChromeOSTest
void ResetToNonEnterprise() {
store_.reset();
- cryptohome_library_->InstallAttributesSet("enterprise.owned",
- std::string());
+ chromeos::cryptohome_util::InstallAttributesSet("enterprise.owned",
+ std::string());
install_attributes_.reset(new EnterpriseInstallAttributes(
- cryptohome_library_.get(), fake_cryptohome_client_.get()));
+ fake_cryptohome_client_.get()));
store_.reset(new DeviceCloudPolicyStoreChromeOS(&device_settings_service_,
install_attributes_.get()));
}
- scoped_ptr<chromeos::CryptohomeLibrary> cryptohome_library_;
scoped_ptr<chromeos::FakeCryptohomeClient> fake_cryptohome_client_;
scoped_ptr<EnterpriseInstallAttributes> install_attributes_;

Powered by Google App Engine
This is Rietveld 408576698