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

Unified Diff: base/task_runner_util_unittest.cc

Issue 168643002: Convert scoped_ptr_malloc -> scoped_ptr, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « base/process/process_info_mac.cc ('k') | chrome/app/image_pre_reader_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_runner_util_unittest.cc
diff --git a/base/task_runner_util_unittest.cc b/base/task_runner_util_unittest.cc
index 04743944d63dc8039ae92b9707537a69edf68970..481f09ebd197c0d40d541d3bb7054d1a1abce7f5 100644
--- a/base/task_runner_util_unittest.cc
+++ b/base/task_runner_util_unittest.cc
@@ -45,20 +45,20 @@ void ExpectFoo(scoped_ptr<Foo> foo) {
EXPECT_FALSE(foo.get());
}
-struct FreeFooFunctor {
+struct FooDeleter {
void operator()(Foo* foo) const {
++g_foo_free_count;
delete foo;
};
};
-scoped_ptr_malloc<Foo, FreeFooFunctor> CreateScopedFoo() {
- return scoped_ptr_malloc<Foo, FreeFooFunctor>(new Foo);
+scoped_ptr<Foo, FooDeleter> CreateScopedFoo() {
+ return scoped_ptr<Foo, FooDeleter>(new Foo);
}
-void ExpectScopedFoo(scoped_ptr_malloc<Foo, FreeFooFunctor> foo) {
+void ExpectScopedFoo(scoped_ptr<Foo, FooDeleter> foo) {
EXPECT_TRUE(foo.get());
- scoped_ptr_malloc<Foo, FreeFooFunctor> local_foo(foo.Pass());
+ scoped_ptr<Foo, FooDeleter> local_foo(foo.Pass());
EXPECT_TRUE(local_foo.get());
EXPECT_FALSE(foo.get());
}
« no previous file with comments | « base/process/process_info_mac.cc ('k') | chrome/app/image_pre_reader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698