Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / chromeos / drive / test_util.cc
blob682f62d56c1a9f3d009ea989d7d3c868eb22be71
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
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/drive/test_util.h"
7 #include "base/prefs/pref_registry_simple.h"
8 #include "base/prefs/testing_pref_service.h"
9 #include "chrome/browser/chromeos/drive/drive.pb.h"
10 #include "chrome/common/pref_names.h"
12 namespace drive {
13 namespace test_util {
15 void RegisterDrivePrefs(PrefRegistrySimple* pref_registry) {
16 pref_registry->RegisterBooleanPref(
17 prefs::kDisableDrive,
18 false);
19 pref_registry->RegisterBooleanPref(
20 prefs::kDisableDriveOverCellular,
21 true);
22 pref_registry->RegisterBooleanPref(
23 prefs::kDisableDriveHostedFiles,
24 false);
27 FakeNetworkChangeNotifier::FakeNetworkChangeNotifier()
28 : type_(CONNECTION_WIFI) {
31 void FakeNetworkChangeNotifier::SetConnectionType(ConnectionType type) {
32 type_ = type;
33 NotifyObserversOfConnectionTypeChange();
36 net::NetworkChangeNotifier::ConnectionType
37 FakeNetworkChangeNotifier::GetCurrentConnectionType() const {
38 return type_;
41 } // namespace test_util
42 } // namespace drive