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

Unified Diff: chromeos/cryptohome/system_salt_getter_unittest.cc

Issue 477663004: Merged FakedDBusThreadManager with DBusThreadManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « chromeos/chromeos.gyp ('k') | chromeos/dbus/dbus_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/cryptohome/system_salt_getter_unittest.cc
diff --git a/chromeos/cryptohome/system_salt_getter_unittest.cc b/chromeos/cryptohome/system_salt_getter_unittest.cc
index f1b52306a7c5841c876b82848e8830c1ee995c7c..db6bc7bd3409b7fe63859e069ae6984d1453f728 100644
--- a/chromeos/cryptohome/system_salt_getter_unittest.cc
+++ b/chromeos/cryptohome/system_salt_getter_unittest.cc
@@ -7,8 +7,8 @@
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
+#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/fake_cryptohome_client.h"
-#include "chromeos/dbus/fake_dbus_thread_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace chromeos {
@@ -25,11 +25,9 @@ class SystemSaltGetterTest : public testing::Test {
SystemSaltGetterTest() : fake_cryptohome_client_(NULL) {}
virtual void SetUp() OVERRIDE {
- FakeDBusThreadManager* dbus_thread_manager = new FakeDBusThreadManager;
fake_cryptohome_client_ = new FakeCryptohomeClient;
- dbus_thread_manager->SetCryptohomeClient(
+ DBusThreadManager::GetSetterForTesting()->SetCryptohomeClient(
scoped_ptr<CryptohomeClient>(fake_cryptohome_client_));
- DBusThreadManager::InitializeForTesting(dbus_thread_manager);
EXPECT_FALSE(SystemSaltGetter::IsInitialized());
SystemSaltGetter::Initialize();
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/dbus/dbus_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698