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

Unified Diff: base/bind_helpers_unittest.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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 | « base/bind_helpers.cc ('k') | base/files/file_path_watcher_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/bind_helpers_unittest.cc
diff --git a/base/task_unittest.cc b/base/bind_helpers_unittest.cc
similarity index 80%
rename from base/task_unittest.cc
rename to base/bind_helpers_unittest.cc
index 1fcbfa93318bc7c3b06f4aeee769276e8a55c446..3ef2d7543540464ddefc06c14d9726078d18a2b0 100644
--- a/base/task_unittest.cc
+++ b/base/bind_helpers_unittest.cc
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/bind_helpers.h"
+
+#include "base/callback.h"
#include "base/bind.h"
-#include "base/memory/ref_counted.h"
-#include "base/task.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -13,7 +14,7 @@ void Increment(int* value) {
(*value)++;
}
-TEST(TaskTest, TestScopedClosureRunnerExitScope) {
+TEST(BindHelpersTest, TestScopedClosureRunnerExitScope) {
int run_count = 0;
{
base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count));
@@ -22,7 +23,7 @@ TEST(TaskTest, TestScopedClosureRunnerExitScope) {
EXPECT_EQ(1, run_count);
}
-TEST(TaskTest, TestScopedClosureRunnerRelease) {
+TEST(BindHelpersTest, TestScopedClosureRunnerRelease) {
int run_count = 0;
base::Closure c;
{
« no previous file with comments | « base/bind_helpers.cc ('k') | base/files/file_path_watcher_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698