| 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 #include "chromeos/network/network_util.h" | 5 #include "chromeos/network/network_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "third_party/cros_system_api/dbus/service_constants.h" | 10 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 9 | 11 |
| 10 using chromeos::CellularScanResult; | 12 using chromeos::CellularScanResult; |
| 11 using chromeos::network_util::NetmaskToPrefixLength; | 13 using chromeos::network_util::NetmaskToPrefixLength; |
| 12 using chromeos::network_util::PrefixLengthToNetmask; | 14 using chromeos::network_util::PrefixLengthToNetmask; |
| 13 using chromeos::network_util::ParseCellularScanResults; | 15 using chromeos::network_util::ParseCellularScanResults; |
| 14 | 16 |
| 15 typedef testing::Test NetworkUtilTest; | 17 typedef testing::Test NetworkUtilTest; |
| 16 | 18 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 EXPECT_EQ("GSM", scan_results[0].technology); | 144 EXPECT_EQ("GSM", scan_results[0].technology); |
| 143 EXPECT_TRUE(scan_results[0].long_name.empty()); | 145 EXPECT_TRUE(scan_results[0].long_name.empty()); |
| 144 EXPECT_TRUE(scan_results[0].short_name.empty()); | 146 EXPECT_TRUE(scan_results[0].short_name.empty()); |
| 145 | 147 |
| 146 EXPECT_EQ("000002", scan_results[1].network_id); | 148 EXPECT_EQ("000002", scan_results[1].network_id); |
| 147 EXPECT_EQ("available", scan_results[1].status); | 149 EXPECT_EQ("available", scan_results[1].status); |
| 148 EXPECT_EQ("Long Name", scan_results[1].long_name); | 150 EXPECT_EQ("Long Name", scan_results[1].long_name); |
| 149 EXPECT_TRUE(scan_results[1].short_name.empty()); | 151 EXPECT_TRUE(scan_results[1].short_name.empty()); |
| 150 EXPECT_TRUE(scan_results[1].technology.empty()); | 152 EXPECT_TRUE(scan_results[1].technology.empty()); |
| 151 } | 153 } |
| OLD | NEW |