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

Unified Diff: base/memory/scoped_ptr_unittest.nc

Issue 12040055: Fix no-compile tests in base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « base/bind_unittest.nc ('k') | base/memory/weak_ptr_unittest.nc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/scoped_ptr_unittest.nc
diff --git a/base/memory/scoped_ptr_unittest.nc b/base/memory/scoped_ptr_unittest.nc
index e4a0d94f6b624c10df569a0ea59939f82f7b8b42..ecbeb4ee6e496be408020c19647af5c6ebd3e3e9 100644
--- a/base/memory/scoped_ptr_unittest.nc
+++ b/base/memory/scoped_ptr_unittest.nc
@@ -38,7 +38,7 @@ void WontCompile() {
scoped_ptr<int[10]> x;
}
-#elif defined(NCTEST_NO_PASS_FROM_ARRAY) // [r"is private"]
+#elif defined(NCTEST_NO_PASS_FROM_ARRAY) // [r"size of array is negative"]
void WontCompile() {
scoped_ptr<int[]> a;
@@ -61,14 +61,14 @@ void WontCompile() {
scoped_ptr<int*> b(a.Pass());
}
-#elif defined(NCTEST_NO_CONSTRUCT_TO_ARRAY) // [r"no matching function for call'"]
+#elif defined(NCTEST_NO_CONSTRUCT_TO_ARRAY) // [r"no matching function for call"]
void WontCompile() {
scoped_ptr<int*> a;
scoped_ptr<int[]> b(a.Pass());
}
-#elif defined(NCTEST_NO_DELETER_REFERENCE) // [r"fails to be a struct or class type'"]
+#elif defined(NCTEST_NO_DELETER_REFERENCE) // [r"fails to be a struct or class type"]
struct Deleter {
void operator()(int*) {}
« no previous file with comments | « base/bind_unittest.nc ('k') | base/memory/weak_ptr_unittest.nc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698