OLD | NEW |
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 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_TEST_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_TEST_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/public/test/test_utils.h" | 10 #include "content/public/test/test_utils.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 void RegisterDrivePrefs(PrefRegistrySimple* pref_registry); | 65 void RegisterDrivePrefs(PrefRegistrySimple* pref_registry); |
66 | 66 |
67 // Fake NetworkChangeNotifier implementation. | 67 // Fake NetworkChangeNotifier implementation. |
68 class FakeNetworkChangeNotifier : public net::NetworkChangeNotifier { | 68 class FakeNetworkChangeNotifier : public net::NetworkChangeNotifier { |
69 public: | 69 public: |
70 FakeNetworkChangeNotifier(); | 70 FakeNetworkChangeNotifier(); |
71 | 71 |
72 void SetConnectionType(ConnectionType type); | 72 void SetConnectionType(ConnectionType type); |
73 | 73 |
74 // NetworkChangeNotifier override. | 74 // NetworkChangeNotifier override. |
75 virtual ConnectionType GetCurrentConnectionType() const override; | 75 ConnectionType GetCurrentConnectionType() const override; |
76 | 76 |
77 private: | 77 private: |
78 net::NetworkChangeNotifier::ConnectionType type_; | 78 net::NetworkChangeNotifier::ConnectionType type_; |
79 }; | 79 }; |
80 | 80 |
81 } // namespace test_util | 81 } // namespace test_util |
82 } // namespace drive | 82 } // namespace drive |
83 | 83 |
84 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_TEST_UTIL_H_ | 84 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_TEST_UTIL_H_ |
OLD | NEW |