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

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

Issue 348713004: Use a TestBrowserThreadBundle in the DeviceSettingsTestBase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 d569436d7a6d2f16d16b0c4d42cde2889eeef480..41497eeaf58746befb8c523e9268b519dc74f1fe 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
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "base/message_loop/message_loop_proxy.h"
#include "base/run_loop.h"
#include "chrome/browser/chromeos/policy/enterprise_install_attributes.h"
#include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
@@ -36,11 +37,12 @@ class DeviceCloudPolicyStoreChromeOSTest
protected:
DeviceCloudPolicyStoreChromeOSTest()
: fake_cryptohome_client_(new chromeos::FakeCryptohomeClient()),
- install_attributes_(new EnterpriseInstallAttributes(
- fake_cryptohome_client_.get())),
- store_(new DeviceCloudPolicyStoreChromeOS(&device_settings_service_,
- install_attributes_.get(),
- loop_.message_loop_proxy())) {
+ install_attributes_(
+ new EnterpriseInstallAttributes(fake_cryptohome_client_.get())),
+ store_(new DeviceCloudPolicyStoreChromeOS(
+ &device_settings_service_,
+ install_attributes_.get(),
+ base::MessageLoopProxy::current())) {
fake_cryptohome_client_->Init(NULL /* no dbus::Bus */);
}
@@ -103,7 +105,7 @@ class DeviceCloudPolicyStoreChromeOSTest
store_.reset(
new DeviceCloudPolicyStoreChromeOS(&device_settings_service_,
install_attributes_.get(),
- loop_.message_loop_proxy()));
+ base::MessageLoopProxy::current()));
}
scoped_ptr<chromeos::FakeCryptohomeClient> fake_cryptohome_client_;

Powered by Google App Engine
This is Rietveld 408576698