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

Side by Side Diff: chromeos/network/network_util_unittest.cc

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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
« no previous file with comments | « chromeos/network/network_util.cc ('k') | chromeos/network/onc/onc_certificate_importer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chromeos/network/network_util.cc ('k') | chromeos/network/onc/onc_certificate_importer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698