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

Unified Diff: content/browser/geolocation/wifi_data_provider_common_unittest.cc

Issue 10449042: Remove wchar/wstring version of StringPrintf. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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
Index: content/browser/geolocation/wifi_data_provider_common_unittest.cc
diff --git a/content/browser/geolocation/wifi_data_provider_common_unittest.cc b/content/browser/geolocation/wifi_data_provider_common_unittest.cc
index 664421d899ce44883a5ede711276c41ae4380a55..538fbf1b4b3a7a5769a999b056d287408f9d0bfe 100644
--- a/content/browser/geolocation/wifi_data_provider_common_unittest.cc
+++ b/content/browser/geolocation/wifi_data_provider_common_unittest.cc
@@ -134,6 +134,13 @@ class GeolocationWifiDataProviderCommonTest : public testing::Test {
MockPollingPolicy* polling_policy_;
};
+TEST_F(GeolocationWifiDataProviderCommonTest, MacAddressString) {
+ uint8 mac[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
+ string16 actual = MacAddressAsString16(mac);
+ string16 expected = ASCIIToUTF16("ff-ff-ff-ff-ff-ff");
+ EXPECT_EQ(expected, actual);
+}
+
TEST_F(GeolocationWifiDataProviderCommonTest, CreateDestroy) {
// Test fixture members were SetUp correctly.
EXPECT_EQ(&main_message_loop_, MessageLoop::current());

Powered by Google App Engine
This is Rietveld 408576698