Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: net/http/http_transaction_test_util.cc

Issue 2519473002: Fixes the cache lock issue. (Closed)
Patch Set: Feedback addressed Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_transaction_test_util.h ('k') | net/log/net_log_event_type_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_transaction_test_util.cc
diff --git a/net/http/http_transaction_test_util.cc b/net/http/http_transaction_test_util.cc
index a5b57461df5a2e49568fa045bc285f9d01e006bc..0c422c82505e9c186e84800496ecae4843e7feb7 100644
--- a/net/http/http_transaction_test_util.cc
+++ b/net/http/http_transaction_test_util.cc
@@ -5,8 +5,10 @@
#include "net/http/http_transaction_test_util.h"
#include <algorithm>
+#include <memory>
#include <unordered_map>
#include <utility>
+#include <vector>
#include "base/bind.h"
#include "base/location.h"
@@ -34,6 +36,7 @@
namespace net {
namespace {
+
using MockTransactionMap =
std::unordered_map<std::string, const MockTransaction*>;
static MockTransactionMap mock_transactions;
@@ -149,6 +152,9 @@ MockHttpRequest::MockHttpRequest(const MockTransaction& t) {
load_flags = t.load_flags;
}
+Context::Context() : result(ERR_IO_PENDING) {}
+Context::~Context() {}
+
//-----------------------------------------------------------------------------
// static
@@ -488,7 +494,7 @@ int MockNetworkTransaction::ResumeNetworkStart() {
void MockNetworkTransaction::GetConnectionAttempts(
ConnectionAttempts* out) const {
- NOTIMPLEMENTED();
+ return;
}
void MockNetworkTransaction::CallbackLater(const CompletionCallback& callback,
« no previous file with comments | « net/http/http_transaction_test_util.h ('k') | net/log/net_log_event_type_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698