| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "net/quic/chromium/network_connection.h" | 5 #include "net/quic/chromium/network_connection.h" |
| 6 | 6 |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "net/quic/chromium/mock_network_change_notifier.h" | 8 #include "net/base/mock_network_change_notifier.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 namespace test { | 12 namespace test { |
| 13 | 13 |
| 14 constexpr auto CONNECTION_3G = NetworkChangeNotifier::CONNECTION_3G; | 14 constexpr auto CONNECTION_3G = NetworkChangeNotifier::CONNECTION_3G; |
| 15 constexpr auto CONNECTION_2G = NetworkChangeNotifier::CONNECTION_2G; | 15 constexpr auto CONNECTION_2G = NetworkChangeNotifier::CONNECTION_2G; |
| 16 constexpr auto CONNECTION_ETHERNET = NetworkChangeNotifier::CONNECTION_ETHERNET; | 16 constexpr auto CONNECTION_ETHERNET = NetworkChangeNotifier::CONNECTION_ETHERNET; |
| 17 constexpr auto CONNECTION_WIFI = NetworkChangeNotifier::CONNECTION_WIFI; | 17 constexpr auto CONNECTION_WIFI = NetworkChangeNotifier::CONNECTION_WIFI; |
| 18 | 18 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 EXPECT_EQ(NetworkChangeNotifier::ConnectionTypeToString(CONNECTION_2G), | 93 EXPECT_EQ(NetworkChangeNotifier::ConnectionTypeToString(CONNECTION_2G), |
| 94 description_2g); | 94 description_2g); |
| 95 EXPECT_EQ(NetworkChangeNotifier::ConnectionTypeToString(CONNECTION_3G), | 95 EXPECT_EQ(NetworkChangeNotifier::ConnectionTypeToString(CONNECTION_3G), |
| 96 description_3g); | 96 description_3g); |
| 97 EXPECT_EQ(NetworkChangeNotifier::ConnectionTypeToString(CONNECTION_ETHERNET), | 97 EXPECT_EQ(NetworkChangeNotifier::ConnectionTypeToString(CONNECTION_ETHERNET), |
| 98 description_ethernet); | 98 description_ethernet); |
| 99 } | 99 } |
| 100 | 100 |
| 101 } // namespace test | 101 } // namespace test |
| 102 } // namespace net | 102 } // namespace net |
| OLD | NEW |