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

Unified Diff: ash/display/projecting_observer_chromeos_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 | « no previous file | ash/system/chromeos/network/network_state_notifier_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/projecting_observer_chromeos_unittest.cc
diff --git a/ash/display/projecting_observer_chromeos_unittest.cc b/ash/display/projecting_observer_chromeos_unittest.cc
index 3a72551a6442936762873aaf9e2ba84452a3b1b3..1de18edbe25c28fdf768c42739fb37f75c7d8064 100644
--- a/ash/display/projecting_observer_chromeos_unittest.cc
+++ b/ash/display/projecting_observer_chromeos_unittest.cc
@@ -5,7 +5,7 @@
#include "ash/display/projecting_observer_chromeos.h"
#include "base/memory/scoped_vector.h"
-#include "chromeos/dbus/fake_dbus_thread_manager.h"
+#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/fake_power_manager_client.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/display/chromeos/test/test_display_snapshot.h"
@@ -40,15 +40,10 @@ ui::DisplayConfigurator::DisplayStateList CreateOutputs(
class ProjectingObserverTest : public testing::Test {
public:
ProjectingObserverTest() : observer_(new ProjectingObserver()) {
- chromeos::FakeDBusThreadManager* dbus_manager =
- new chromeos::FakeDBusThreadManager();
fake_power_client_ = new chromeos::FakePowerManagerClient();
- dbus_manager->SetPowerManagerClient(
+ chromeos::DBusThreadManager::GetSetterForTesting()->SetPowerManagerClient(
scoped_ptr<chromeos::PowerManagerClient>(fake_power_client_));
-
- // Takes ownership of |dbus_manager|.
- chromeos::DBusThreadManager::InitializeForTesting(dbus_manager);
}
virtual ~ProjectingObserverTest() {
« no previous file with comments | « no previous file | ash/system/chromeos/network/network_state_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698