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

Unified Diff: base/callback_unittest.nc

Issue 1537553002: Replace typedef with using for Callback/Bind related files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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/callback_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/callback_unittest.nc
diff --git a/base/callback_unittest.nc b/base/callback_unittest.nc
index edf26b79732cf2e409baf16847408461c3568e72..a8967b62b01154c8290bb345bb0b3615c7ff72ae 100644
--- a/base/callback_unittest.nc
+++ b/base/callback_unittest.nc
@@ -23,7 +23,7 @@ class Child : Parent {
// considered distinct.
void WontCompile() {
Closure c1;
- Callback<int(void)> c2;
+ Callback<int()> c2;
c1.Equals(c2);
}
@@ -34,8 +34,8 @@ void WontCompile() {
// While this is technically safe, most people aren't used to it when coding
// C++ so if this is happening, it is almost certainly an error.
void WontCompile() {
- Callback<Parent(void)> cb_a;
- Callback<Child(void)> cb_b = cb_a;
+ Callback<Parent()> cb_a;
+ Callback<Child()> cb_b = cb_a;
}
#elif defined(NCTEST_ASSIGNMENT_FROM_SUBTYPE) // [r"fatal error: no viable overloaded '='"]
@@ -43,8 +43,8 @@ void WontCompile() {
// Assignment of Callback<A> from Callback<B> if A is supertype of B.
// See explanation for NCTEST_CONSTRUCTION_FROM_SUBTYPE
void WontCompile() {
- Callback<Parent(void)> cb_a;
- Callback<Child(void)> cb_b;
+ Callback<Parent()> cb_a;
+ Callback<Child()> cb_b;
cb_a = cb_b;
}
« no previous file with comments | « base/callback_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698