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

Unified Diff: chrome/browser/chromeos/cros/network_library_unittest.cc

Issue 10169014: Parse and store Wifi bssid and frequency properites. (Closed) Base URL: http://git.chromium.org/git/chromium/src@master
Patch Set: Provide TestApi for SetSsid/SetHexSsid Created 8 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/network_library_unittest.cc
diff --git a/chrome/browser/chromeos/cros/network_library_unittest.cc b/chrome/browser/chromeos/cros/network_library_unittest.cc
index ddbe1fdd1c16db0f45bed4b4aa7db8dd43c67867..5b3695046f6c8ce2dc8cb6d8be1e0d883d93b8e8 100644
--- a/chrome/browser/chromeos/cros/network_library_unittest.cc
+++ b/chrome/browser/chromeos/cros/network_library_unittest.cc
@@ -151,7 +151,8 @@ TEST(NetworkLibraryTest, DecodeNonAsciiSSID) {
std::string wifi_utf8 = "UTF-8 \u3042\u3044\u3046";
std::string wifi_utf8_result = "UTF-8 \xE3\x81\x82\xE3\x81\x84\xE3\x81\x86";
WifiNetwork* wifi = new WifiNetwork("fw");
- wifi->SetSsid(wifi_utf8);
+ WifiNetwork::TestApi test_wifi(wifi);
+ test_wifi.SetSsid(wifi_utf8);
EXPECT_EQ(wifi->name(), wifi_utf8_result);
delete wifi;
}
@@ -161,7 +162,8 @@ TEST(NetworkLibraryTest, DecodeNonAsciiSSID) {
std::string wifi_latin1 = "latin-1 \xc0\xcb\xcc\xd6\xfb";
std::string wifi_latin1_result = "latin-1 \u00c0\u00cb\u00cc\u00d6\u00fb";
WifiNetwork* wifi = new WifiNetwork("fw");
- wifi->SetSsid(wifi_latin1);
+ WifiNetwork::TestApi test_wifi(wifi);
+ test_wifi.SetSsid(wifi_latin1);
EXPECT_EQ(wifi->name(), wifi_latin1_result);
delete wifi;
}
@@ -171,7 +173,8 @@ TEST(NetworkLibraryTest, DecodeNonAsciiSSID) {
std::string wifi_hex = "5468697320697320484558205353494421";
std::string wifi_hex_result = "This is HEX SSID!";
WifiNetwork* wifi = new WifiNetwork("fw");
- wifi->SetHexSsid(wifi_hex);
+ WifiNetwork::TestApi test_wifi(wifi);
+ test_wifi.SetHexSsid(wifi_hex);
EXPECT_EQ(wifi->name(), wifi_hex_result);
delete wifi;
}
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698