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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: tools/clang/base_bind_rewriters/tests/callback-temporary-converted-to-once-callback-expected.cc
diff --git a/tools/clang/base_bind_rewriters/tests/callback-temporary-converted-to-once-callback-expected.cc b/tools/clang/base_bind_rewriters/tests/callback-temporary-converted-to-once-callback-expected.cc
new file mode 100644
index 0000000000000000000000000000000000000000..44c02ec39c681c141c569ebf6d51007a8144628b
--- /dev/null
+++ b/tools/clang/base_bind_rewriters/tests/callback-temporary-converted-to-once-callback-expected.cc
@@ -0,0 +1,19 @@
+// Copyright 2017 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.
+
+#include "callback.h"
+
+void Foo(base::OnceClosure) {}
+
+void Test() {
+ base::OnceClosure cb = base::BindOnce([] {});
+ Foo(base::BindOnce([] {}));
+
+ using namespace base;
+
+ OnceClosure cb2 = BindOnce([] {});
+ Foo(BindOnce([] {}));
+
+ Closure cb3 = base::Bind([] {});
+}

Powered by Google App Engine
This is Rietveld 408576698