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

Side by Side Diff: tools/clang/base_bind_rewriters/tests/test-expected.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 template <typename>
6 class scoped_refptr {
7 public:
8 void* get() { return 0; }
9 };
10
11 namespace base {
12
13 template <typename Functor, typename... Args>
14 void Bind(Functor&&, Args&&...) {}
15
16 } // namespace base
17
18 struct Foo {
19 void Bar();
20 static void Baz();
21 };
22
23 void Test() {
24 using base::Bind;
25 scoped_refptr<int> foo;
26 base::Bind(&Foo::Bar, foo);
27 Bind(&Foo::Bar, foo);
28 base::Bind(&Foo::Bar, (&foo));
29 base::Bind(&Foo::Bar, foo);
30 base::Bind(&Foo::Bar, foo);
31 base::Bind(&Foo::Bar, foo, foo.get());
32 base::Bind(&Foo::Baz, foo.get());
33 base::Bind(&Foo::Bar, foo);
34 base::Bind(&Foo::Bar, (&foo));
35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698