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

Unified Diff: tools/clang/base_bind_rewriters/tests/test-original.cc

Issue 2789153002: Update BaseBindRewriters to convert base::Bind to base::BindOnce (Closed)
Patch Set: rename test files Created 3 years, 8 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 | « tools/clang/base_bind_rewriters/tests/test-expected.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/base_bind_rewriters/tests/test-original.cc
diff --git a/tools/clang/base_bind_rewriters/tests/test-original.cc b/tools/clang/base_bind_rewriters/tests/test-original.cc
deleted file mode 100644
index 89acfdeb87e6012bc89d40d4f11e3cd2dd46dfb0..0000000000000000000000000000000000000000
--- a/tools/clang/base_bind_rewriters/tests/test-original.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-template <typename>
-class scoped_refptr {
- public:
- void* get() { return 0; }
-};
-
-namespace base {
-
-template <typename Functor, typename... Args>
-void Bind(Functor&&, Args&&...) {}
-
-} // namespace base
-
-struct Foo {
- void Bar();
- static void Baz();
-};
-
-void Test() {
- using base::Bind;
- scoped_refptr<int> foo;
- base::Bind(&Foo::Bar, foo.get());
- Bind(&Foo::Bar, foo.get());
- base::Bind(&Foo::Bar, (&foo)->get());
- base::Bind(&Foo::Bar, foo.get(
- ));
- base::Bind(&Foo::Bar, foo
- .get());
- base::Bind(&Foo::Bar, foo.get(), foo.get());
- base::Bind(&Foo::Baz, foo.get());
- base::Bind(&Foo::Bar, foo.scoped_refptr<int>::get());
- base::Bind(&Foo::Bar, (&foo)->scoped_refptr<int>::get());
-}
« no previous file with comments | « tools/clang/base_bind_rewriters/tests/test-expected.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698