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

Side by Side Diff: chromeos/network/network_state_handler_unittest.cc

Issue 477663004: Merged FakedDBusThreadManager with DBusThreadManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/network/network_state_handler.h" 5 #include "chromeos/network/network_state_handler.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 public: 172 public:
173 NetworkStateHandlerTest() 173 NetworkStateHandlerTest()
174 : device_test_(NULL), 174 : device_test_(NULL),
175 manager_test_(NULL), 175 manager_test_(NULL),
176 profile_test_(NULL), 176 profile_test_(NULL),
177 service_test_(NULL) {} 177 service_test_(NULL) {}
178 virtual ~NetworkStateHandlerTest() {} 178 virtual ~NetworkStateHandlerTest() {}
179 179
180 virtual void SetUp() OVERRIDE { 180 virtual void SetUp() OVERRIDE {
181 // Initialize DBusThreadManager with a stub implementation. 181 // Initialize DBusThreadManager with a stub implementation.
182 DBusThreadManager::InitializeWithStub(); 182 DBusThreadManager::Initialize();
183 SetupDefaultShillState(); 183 SetupDefaultShillState();
184 network_state_handler_.reset(new NetworkStateHandler); 184 network_state_handler_.reset(new NetworkStateHandler);
185 test_observer_.reset(new TestObserver(network_state_handler_.get())); 185 test_observer_.reset(new TestObserver(network_state_handler_.get()));
186 network_state_handler_->AddObserver(test_observer_.get(), FROM_HERE); 186 network_state_handler_->AddObserver(test_observer_.get(), FROM_HERE);
187 network_state_handler_->InitShillPropertyHandler(); 187 network_state_handler_->InitShillPropertyHandler();
188 message_loop_.RunUntilIdle(); 188 message_loop_.RunUntilIdle();
189 test_observer_->reset_change_counts(); 189 test_observer_->reset_change_counts();
190 } 190 }
191 191
192 virtual void TearDown() OVERRIDE { 192 virtual void TearDown() OVERRIDE {
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 kShillManagerClientStubDefaultWifi, shill::kIPConfigProperty, 774 kShillManagerClientStubDefaultWifi, shill::kIPConfigProperty,
775 base::StringValue(kIPConfigPath)); 775 base::StringValue(kIPConfigPath));
776 UpdateManagerProperties(); 776 UpdateManagerProperties();
777 EXPECT_EQ(1, test_observer_->PropertyUpdatesForDevice( 777 EXPECT_EQ(1, test_observer_->PropertyUpdatesForDevice(
778 kShillManagerClientStubWifiDevice)); 778 kShillManagerClientStubWifiDevice));
779 EXPECT_EQ(1, test_observer_->PropertyUpdatesForService( 779 EXPECT_EQ(1, test_observer_->PropertyUpdatesForService(
780 kShillManagerClientStubDefaultWifi)); 780 kShillManagerClientStubDefaultWifi));
781 } 781 }
782 782
783 } // namespace chromeos 783 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/network_sms_handler_unittest.cc ('k') | chromeos/network/shill_property_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698