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

Unified Diff: net/base/test_completion_callback.cc

Issue 699693002: Introducing net::TestCompletionClosure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self reviewed Created 6 years, 1 month 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
Index: net/base/test_completion_callback.cc
diff --git a/net/base/test_completion_callback.cc b/net/base/test_completion_callback.cc
index 4fcff74faac2c6bb93c16c77da5f3702612d0dbc..937b9d3c4cf555d4475cc747fe71c07dbcaa36e4 100644
--- a/net/base/test_completion_callback.cc
+++ b/net/base/test_completion_callback.cc
@@ -37,9 +37,17 @@ TestCompletionCallbackBaseInternal::TestCompletionCallbackBaseInternal()
} // namespace internal
+TestClosureCallback::TestClosureCallback()
+ : callback_(base::Bind(&TestClosureCallback::DidSetResult,
+ base::Unretained(this))) {
+}
+
+TestClosureCallback::~TestClosureCallback() {
+}
+
TestCompletionCallback::TestCompletionCallback()
: callback_(base::Bind(&TestCompletionCallback::SetResult,
- base::Unretained(this))) {
+ base::Unretained(this))) {
}
TestCompletionCallback::~TestCompletionCallback() {
@@ -47,7 +55,7 @@ TestCompletionCallback::~TestCompletionCallback() {
TestInt64CompletionCallback::TestInt64CompletionCallback()
: callback_(base::Bind(&TestInt64CompletionCallback::SetResult,
- base::Unretained(this))) {
+ base::Unretained(this))) {
}
TestInt64CompletionCallback::~TestInt64CompletionCallback() {

Powered by Google App Engine
This is Rietveld 408576698