summaryrefslogtreecommitdiffstats
path: root/net/base/load_log_unittest.cc
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-20 22:45:00 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-20 22:45:00 +0000
commit259aefa98c9947620e651ba1a220dbeb0df48b21 (patch)
treeee1184df026636acad392cc2be2972c6730f3886 /net/base/load_log_unittest.cc
parent4dc37d9532eff13c23c39f10f8876fa40bb88b48 (diff)
downloadchromium_src-259aefa98c9947620e651ba1a220dbeb0df48b21.zip
chromium_src-259aefa98c9947620e651ba1a220dbeb0df48b21.tar.gz
chromium_src-259aefa98c9947620e651ba1a220dbeb0df48b21.tar.bz2
Fix some style nits in unittests.
* Changed the indentation for long lines of "ExpectLogContains()". * Moved host_resolver_impl_unittest into the net namespace to avoid lots of redundant net:: prefixes. Review URL: http://codereview.chromium.org/173137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/load_log_unittest.cc')
-rw-r--r--net/base/load_log_unittest.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/net/base/load_log_unittest.cc b/net/base/load_log_unittest.cc
index 18178af..510a5e1 100644
--- a/net/base/load_log_unittest.cc
+++ b/net/base/load_log_unittest.cc
@@ -54,18 +54,19 @@ TEST(LoadLogTest, Basic) {
log->Add(MakeTime(0), LoadLog::TYPE_HOST_RESOLVER_IMPL, LoadLog::PHASE_BEGIN);
log->Add(MakeTime(2), LoadLog::TYPE_CANCELLED, LoadLog::PHASE_NONE);
log->Add(MakeTime(11), LoadLog::TYPE_HOST_RESOLVER_IMPL_OBSERVER_ONSTART,
- LoadLog::PHASE_END);
+ LoadLog::PHASE_END);
EXPECT_EQ(3u, log->events().size());
ExpectLogContains(log, 0, MakeTime(0), LoadLog::TYPE_HOST_RESOLVER_IMPL,
- LoadLog::PHASE_BEGIN);
+ LoadLog::PHASE_BEGIN);
- ExpectLogContains(log, 1, MakeTime(2),
- LoadLog::TYPE_CANCELLED, LoadLog::PHASE_NONE);
+ ExpectLogContains(log, 1, MakeTime(2), LoadLog::TYPE_CANCELLED,
+ LoadLog::PHASE_NONE);
ExpectLogContains(log, 2, MakeTime(11),
- LoadLog::TYPE_HOST_RESOLVER_IMPL_OBSERVER_ONSTART, LoadLog::PHASE_END);
+ LoadLog::TYPE_HOST_RESOLVER_IMPL_OBSERVER_ONSTART,
+ LoadLog::PHASE_END);
}
// Test that the log's size is strictly bounded.
@@ -90,7 +91,7 @@ TEST(LoadLogTest, Truncation) {
// We terminated with a "truncation" event.
ExpectLogContains(log, LoadLog::kMaxNumEntries - 1, MakeTime(0),
- LoadLog::TYPE_LOG_TRUNCATED, LoadLog::PHASE_NONE);
+ LoadLog::TYPE_LOG_TRUNCATED, LoadLog::PHASE_NONE);
}
TEST(LoadLogTest, Append) {