summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authormmenke <mmenke@chromium.org>2015-04-24 16:00:56 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-24 23:01:48 +0000
commit16a7cbdd2de5af03e8eb9777a81d3f2d5613261f (patch)
treeb49acc972ccb97a54bdd4a0cb24f470ebf0f68d4 /components
parentfb74da9cda4d943f453ad8e5de7b830174faf431 (diff)
downloadchromium_src-16a7cbdd2de5af03e8eb9777a81d3f2d5613261f.zip
chromium_src-16a7cbdd2de5af03e8eb9777a81d3f2d5613261f.tar.gz
chromium_src-16a7cbdd2de5af03e8eb9777a81d3f2d5613261f.tar.bz2
Get rid of TestNetLog::CapturedEntry[List] typedefs.
Replace them with CapturedNetLogEntry. BUG=none TBR=bengr@chromium.org Review URL: https://codereview.chromium.org/1109473003 Cr-Commit-Position: refs/heads/master@{#326924}
Diffstat (limited to 'components')
-rw-r--r--components/data_reduction_proxy/core/common/data_reduction_proxy_event_store_unittest.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store_unittest.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store_unittest.cc
index 05c996b..9f512d4 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store_unittest.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store_unittest.cc
@@ -11,6 +11,7 @@
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h"
#include "net/http/http_status_code.h"
+#include "net/log/captured_net_log_entry.h"
#include "net/log/net_log.h"
#include "net/log/test_net_log.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -30,8 +31,8 @@ class DataReductionProxyEventStoreTest : public testing::Test {
new DataReductionProxyEventCreator(event_store_.get()));
}
- net::TestNetLog::CapturedEntry GetSingleEntry() const {
- net::TestNetLog::CapturedEntryList entries;
+ net::CapturedNetLogEntry GetSingleEntry() const {
+ net::CapturedNetLogEntry::List entries;
net_log_->GetEntries(&entries);
EXPECT_EQ(1u, entries.size());
return entries[0];
@@ -63,7 +64,7 @@ TEST_F(DataReductionProxyEventStoreTest, TestAddProxyEnabledEvent) {
TestDataReductionProxyParams::DefaultFallbackOrigin(),
TestDataReductionProxyParams::DefaultSSLOrigin());
EXPECT_EQ(1u, event_store()->stored_events_.size());
- net::TestNetLog::CapturedEntry entry = GetSingleEntry();
+ net::CapturedNetLogEntry entry = GetSingleEntry();
EXPECT_EQ(net::NetLog::TYPE_DATA_REDUCTION_PROXY_ENABLED,
entry.type);
}
@@ -72,7 +73,7 @@ TEST_F(DataReductionProxyEventStoreTest, TestAddProxyDisabledEvent) {
EXPECT_EQ(0u, event_store()->stored_events_.size());
event_creator()->AddProxyDisabledEvent(net_log());
EXPECT_EQ(1u, event_store()->stored_events_.size());
- net::TestNetLog::CapturedEntry entry = GetSingleEntry();
+ net::CapturedNetLogEntry entry = GetSingleEntry();
EXPECT_EQ(net::NetLog::TYPE_DATA_REDUCTION_PROXY_ENABLED,
entry.type);
}
@@ -83,7 +84,7 @@ TEST_F(DataReductionProxyEventStoreTest, TestAddBypassActionEvent) {
event_creator()->AddBypassActionEvent(bound_net_log(), "bypass", GURL(),
base::TimeDelta::FromMinutes(1));
EXPECT_EQ(1u, event_store()->stored_events_.size());
- net::TestNetLog::CapturedEntry entry = GetSingleEntry();
+ net::CapturedNetLogEntry entry = GetSingleEntry();
EXPECT_EQ(net::NetLog::TYPE_DATA_REDUCTION_PROXY_BYPASS_REQUESTED,
entry.type);
EXPECT_NE(nullptr, event_store()->last_bypass_event_.get());
@@ -96,7 +97,7 @@ TEST_F(DataReductionProxyEventStoreTest, TestAddBypassTypeEvent) {
GURL(), base::TimeDelta::FromMinutes(1));
EXPECT_EQ(1u, event_store()->stored_events_.size());
EXPECT_EQ(1u, net_log()->GetSize());
- net::TestNetLog::CapturedEntry entry = GetSingleEntry();
+ net::CapturedNetLogEntry entry = GetSingleEntry();
EXPECT_EQ(net::NetLog::TYPE_DATA_REDUCTION_PROXY_BYPASS_REQUESTED,
entry.type);
EXPECT_NE(nullptr, event_store()->last_bypass_event_.get());
@@ -109,7 +110,7 @@ TEST_F(DataReductionProxyEventStoreTest, TestBeginSecureProxyCheck) {
event_creator()->BeginSecureProxyCheck(bound_net_log(), GURL());
EXPECT_EQ(1u, event_store()->stored_events_.size());
EXPECT_EQ(1u, net_log()->GetSize());
- net::TestNetLog::CapturedEntry entry = GetSingleEntry();
+ net::CapturedNetLogEntry entry = GetSingleEntry();
EXPECT_EQ(net::NetLog::TYPE_DATA_REDUCTION_PROXY_CANARY_REQUEST,
entry.type);
EXPECT_EQ(DataReductionProxyEventStorageDelegate::CHECK_PENDING,
@@ -123,7 +124,7 @@ TEST_F(DataReductionProxyEventStoreTest, TestEndSecureProxyCheck) {
event_creator()->EndSecureProxyCheck(bound_net_log(), 0, net::HTTP_OK, true);
EXPECT_EQ(1u, event_store()->stored_events_.size());
EXPECT_EQ(1u, net_log()->GetSize());
- net::TestNetLog::CapturedEntry entry = GetSingleEntry();
+ net::CapturedNetLogEntry entry = GetSingleEntry();
EXPECT_EQ(net::NetLog::TYPE_DATA_REDUCTION_PROXY_CANARY_REQUEST,
entry.type);
EXPECT_EQ(DataReductionProxyEventStorageDelegate::CHECK_SUCCESS,