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

Side by Side Diff: chrome/browser/chromeos/customization_document_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/chromeos/customization_document.h" 5 #include "chrome/browser/chromeos/customization_document.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/prefs/testing_pref_service.h" 8 #include "base/prefs/testing_pref_service.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 // testing::Test: 220 // testing::Test:
221 virtual void SetUp() OVERRIDE { 221 virtual void SetUp() OVERRIDE {
222 ServicesCustomizationDocument::InitializeForTesting(); 222 ServicesCustomizationDocument::InitializeForTesting();
223 223
224 EXPECT_CALL(mock_statistics_provider_, GetMachineStatistic(_, NotNull())) 224 EXPECT_CALL(mock_statistics_provider_, GetMachineStatistic(_, NotNull()))
225 .WillRepeatedly(Return(false)); 225 .WillRepeatedly(Return(false));
226 chromeos::system::StatisticsProvider::SetTestProvider( 226 chromeos::system::StatisticsProvider::SetTestProvider(
227 &mock_statistics_provider_); 227 &mock_statistics_provider_);
228 228
229 DBusThreadManager::InitializeWithStub(); 229 DBusThreadManager::Initialize();
230 NetworkHandler::Initialize(); 230 NetworkHandler::Initialize();
231 RunUntilIdle(); 231 RunUntilIdle();
232 const NetworkState* default_network = 232 const NetworkState* default_network =
233 NetworkHandler::Get()->network_state_handler()->DefaultNetwork(); 233 NetworkHandler::Get()->network_state_handler()->DefaultNetwork();
234 std::string default_network_path = 234 std::string default_network_path =
235 default_network ? default_network->path() : ""; 235 default_network ? default_network->path() : "";
236 236
237 NetworkPortalDetector::InitializeForTesting(&network_portal_detector_); 237 NetworkPortalDetector::InitializeForTesting(&network_portal_detector_);
238 NetworkPortalDetector::CaptivePortalState online_state; 238 NetworkPortalDetector::CaptivePortalState online_state;
239 online_state.status = NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_ONLINE; 239 online_state.status = NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_ONLINE;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 EXPECT_CALL(visitor, OnExternalExtensionUpdateUrlFound(_, _, _, _, _, _)) 476 EXPECT_CALL(visitor, OnExternalExtensionUpdateUrlFound(_, _, _, _, _, _))
477 .Times(0); 477 .Times(0);
478 EXPECT_CALL(visitor, OnExternalProviderReady(_)) 478 EXPECT_CALL(visitor, OnExternalProviderReady(_))
479 .Times(1); 479 .Times(1);
480 480
481 RunUntilIdle(); 481 RunUntilIdle();
482 EXPECT_TRUE(doc->IsReady()); 482 EXPECT_TRUE(doc->IsReady());
483 } 483 }
484 484
485 } // namespace chromeos 485 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698