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

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

Issue 24637004: cryptohome: Merge FakeCryptohomeClient and CryptohomeClinentStubImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the build 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc
diff --git a/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc b/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc
index 49d993f845651cb92c9bc99316d4cabfc49013c7..c509c4ec84586a40fc484d37a0192ce94e143c87 100644
--- a/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc
+++ b/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc
@@ -26,8 +26,8 @@
#include "chrome/browser/prefs/browser_prefs.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chromeos/cryptohome/cryptohome_library.h"
-#include "chromeos/dbus/cryptohome_client_stub.h"
#include "chromeos/dbus/dbus_client_implementation_type.h"
+#include "chromeos/dbus/fake_cryptohome_client.h"
#include "google_apis/gaia/gaia_oauth_client.h"
#include "net/url_request/test_url_fetcher_factory.h"
#include "net/url_request/url_request_test_util.h"
@@ -59,15 +59,15 @@ class DeviceCloudPolicyManagerChromeOSTest
protected:
DeviceCloudPolicyManagerChromeOSTest()
: cryptohome_library_(chromeos::CryptohomeLibrary::GetTestImpl()),
- stub_cryptohome_client_(new chromeos::CryptohomeClientStubImpl()),
+ fake_cryptohome_client_(new chromeos::FakeCryptohomeClient()),
install_attributes_(cryptohome_library_.get(),
- stub_cryptohome_client_.get()),
+ fake_cryptohome_client_.get()),
store_(new DeviceCloudPolicyStoreChromeOS(&device_settings_service_,
&install_attributes_)),
manager_(make_scoped_ptr(store_),
loop_.message_loop_proxy(),
&install_attributes_) {
- stub_cryptohome_client_->Init(NULL /* no dbus::Bus */);
+ fake_cryptohome_client_->Init(NULL /* no dbus::Bus */);
}
virtual void SetUp() OVERRIDE {
@@ -101,7 +101,7 @@ class DeviceCloudPolicyManagerChromeOSTest
}
scoped_ptr<chromeos::CryptohomeLibrary> cryptohome_library_;
- scoped_ptr<chromeos::CryptohomeClientStubImpl> stub_cryptohome_client_;
+ scoped_ptr<chromeos::FakeCryptohomeClient> fake_cryptohome_client_;
EnterpriseInstallAttributes install_attributes_;
scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698