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

Unified Diff: base/task_unittest.cc

Issue 8483003: Callback API Change: Reimplement Bind(); support IgnoreResult, full currying, and use less types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 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
« no previous file with comments | « base/file_util_proxy.cc ('k') | base/template_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_unittest.cc
diff --git a/base/task_unittest.cc b/base/task_unittest.cc
index d7d31fa47b2eace0011df618f4ed34c3b7d01a45..f1924150f9fb49bd87c7e43908415890d9059c4b 100644
--- a/base/task_unittest.cc
+++ b/base/task_unittest.cc
@@ -115,7 +115,7 @@ void Increment(int* value) {
TEST(TaskTest, TestScopedClosureRunnerExitScope) {
int run_count = 0;
{
- base::ScopedClosureRunner runner(base::Bind(Increment, &run_count));
+ base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count));
EXPECT_EQ(0, run_count);
}
EXPECT_EQ(1, run_count);
@@ -125,7 +125,7 @@ TEST(TaskTest, TestScopedClosureRunnerRelease) {
int run_count = 0;
base::Closure c;
{
- base::ScopedClosureRunner runner(base::Bind(Increment, &run_count));
+ base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count));
c = runner.Release();
EXPECT_EQ(0, run_count);
}
« no previous file with comments | « base/file_util_proxy.cc ('k') | base/template_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698