summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/url_request/url_request_unittest.cc')
-rw-r--r--net/url_request/url_request_unittest.cc24
1 files changed, 8 insertions, 16 deletions
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 1adeb0c..48cfd35 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -218,22 +218,14 @@ TEST_F(URLRequestTestHTTP, GetTest_NoCache) {
// The first part of the log will be for URL_REQUEST_START.
// After that, there should be an HTTP_TRANSACTION_READ_BODY
- EXPECT_TRUE(
- net::LogContains(*r.load_log(), 0,
- net::LoadLog::TYPE_URL_REQUEST_START,
- net::LoadLog::PHASE_BEGIN));
- EXPECT_TRUE(
- net::LogContains(*r.load_log(), -3,
- net::LoadLog::TYPE_URL_REQUEST_START,
- net::LoadLog::PHASE_END));
- EXPECT_TRUE(
- net::LogContains(*r.load_log(), -2,
- net::LoadLog::TYPE_HTTP_TRANSACTION_READ_BODY,
- net::LoadLog::PHASE_BEGIN));
- EXPECT_TRUE(
- net::LogContains(*r.load_log(), -1,
- net::LoadLog::TYPE_HTTP_TRANSACTION_READ_BODY,
- net::LoadLog::PHASE_END));
+ EXPECT_TRUE(net::LogContainsBeginEvent(
+ *r.load_log(), 0, net::LoadLog::TYPE_URL_REQUEST_START));
+ EXPECT_TRUE(net::LogContainsEndEvent(
+ *r.load_log(), -3, net::LoadLog::TYPE_URL_REQUEST_START));
+ EXPECT_TRUE(net::LogContainsBeginEvent(
+ *r.load_log(), -2, net::LoadLog::TYPE_HTTP_TRANSACTION_READ_BODY));
+ EXPECT_TRUE(net::LogContainsEndEvent(
+ *r.load_log(), -1, net::LoadLog::TYPE_HTTP_TRANSACTION_READ_BODY));
}
}