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

Unified Diff: chromeos/network/network_event_log_unittest.cc

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit tests Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/network/network_event_log.cc ('k') | chromeos/network/onc/onc_certificate_importer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_event_log_unittest.cc
diff --git a/chromeos/network/network_event_log_unittest.cc b/chromeos/network/network_event_log_unittest.cc
index 3d44f6c983433b7f80aeba18d7e83ff5358adbb4..ed575bba4dc52b6c84225275592c5d499561d2a0 100644
--- a/chromeos/network/network_event_log_unittest.cc
+++ b/chromeos/network/network_event_log_unittest.cc
@@ -60,34 +60,34 @@ TEST_F(NetworkEventLogTest, TestNetworkEvents) {
network_event_log::AddEntry("module3", "event3", "description3");
const std::string expected_output_oldest_first(
- "module1.event1: description1\n"
- "module2.event2: description2\n"
- "module3.event3: description3 (2)\n");
+ "module1:event1: description1\n"
+ "module2:event2: description2\n"
+ "module3:event3: description3 (2)\n");
std::string output_oldest_first = network_event_log::GetAsString(
network_event_log::OLDEST_FIRST, 0);
output_oldest_first = SkipTime(output_oldest_first);
EXPECT_EQ(expected_output_oldest_first, output_oldest_first);
const std::string expected_output_oldest_first_short(
- "module2.event2: description2\n"
- "module3.event3: description3 (2)\n");
+ "module2:event2: description2\n"
+ "module3:event3: description3 (2)\n");
std::string output_oldest_first_short = network_event_log::GetAsString(
network_event_log::OLDEST_FIRST, 2);
output_oldest_first_short = SkipTime(output_oldest_first_short);
EXPECT_EQ(expected_output_oldest_first_short, output_oldest_first_short);
const std::string expected_output_newest_first(
- "module3.event3: description3 (2)\n"
- "module2.event2: description2\n"
- "module1.event1: description1\n");
+ "module3:event3: description3 (2)\n"
+ "module2:event2: description2\n"
+ "module1:event1: description1\n");
std::string output_newest_first = network_event_log::GetAsString(
network_event_log::NEWEST_FIRST, 0);
output_newest_first = SkipTime(output_newest_first);
EXPECT_EQ(expected_output_newest_first, output_newest_first);
const std::string expected_output_newest_first_short(
- "module3.event3: description3 (2)\n"
- "module2.event2: description2\n");
+ "module3:event3: description3 (2)\n"
+ "module2:event2: description2\n");
std::string output_newest_first_short = network_event_log::GetAsString(
network_event_log::NEWEST_FIRST, 2);
output_newest_first_short = SkipTime(output_newest_first_short);
« no previous file with comments | « chromeos/network/network_event_log.cc ('k') | chromeos/network/onc/onc_certificate_importer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698