summaryrefslogtreecommitdiffstats
path: root/components/domain_reliability/util_unittest.cc
diff options
context:
space:
mode:
authorttuttle@chromium.org <ttuttle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-11 00:43:49 +0000
committerttuttle@chromium.org <ttuttle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-11 00:43:49 +0000
commit563dc47699901e4c54b1b2121262c679fb355d72 (patch)
tree7dd7cd475483b83482546adc72effe3f02f1e11b /components/domain_reliability/util_unittest.cc
parent727c5c9373573f3a48380c93f9d63f99fd0f6395 (diff)
downloadchromium_src-563dc47699901e4c54b1b2121262c679fb355d72.zip
chromium_src-563dc47699901e4c54b1b2121262c679fb355d72.tar.gz
chromium_src-563dc47699901e4c54b1b2121262c679fb355d72.tar.bz2
Domain Reliability: Don't send proxy address, other fixes
Make sure the monitor does not collect the proxy's address if one was used. (In the process, refactor RequestInfo to contain the whole HttpResponseInfo, tighten up OnRequestLegComplete, and poke at unittests a bit.) Also, count network errors as well as HTTP errors as failures (!). BUG=356791 Review URL: https://codereview.chromium.org/267633002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269657 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/domain_reliability/util_unittest.cc')
-rw-r--r--components/domain_reliability/util_unittest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/domain_reliability/util_unittest.cc b/components/domain_reliability/util_unittest.cc
index a082fd2..3f21fcc 100644
--- a/components/domain_reliability/util_unittest.cc
+++ b/components/domain_reliability/util_unittest.cc
@@ -8,11 +8,12 @@
#include "components/domain_reliability/test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
+namespace domain_reliability {
+namespace {
+
using base::TimeDelta;
using base::TimeTicks;
-namespace domain_reliability {
-
class DomainReliabilityMockTimeTest : public testing::Test {
protected:
MockTime time_;
@@ -120,4 +121,5 @@ TEST_F(DomainReliabilityMockTimeTest, TimerReentrantStart) {
EXPECT_FALSE(timer->IsRunning());
}
+} // namespace
} // namespace domain_reliability