diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 22:45:00 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 22:45:00 +0000 |
commit | 259aefa98c9947620e651ba1a220dbeb0df48b21 (patch) | |
tree | ee1184df026636acad392cc2be2972c6730f3886 /net/base/load_log_unittest.cc | |
parent | 4dc37d9532eff13c23c39f10f8876fa40bb88b48 (diff) | |
download | chromium_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.cc | 13 |
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) { |