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

Side by Side Diff: tools/clang/base_bind_rewriters/tests/callback-temporary-converted-to-once-callback-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 2017 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 #include "callback.h"
6
7 void Foo(base::OnceClosure) {}
8
9 void Test() {
10 base::OnceClosure cb = base::BindOnce([] {});
11 Foo(base::BindOnce([] {}));
12
13 using namespace base;
14
15 OnceClosure cb2 = BindOnce([] {});
16 Foo(BindOnce([] {}));
17
18 Closure cb3 = base::Bind([] {});
19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698