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

Unified Diff: tests/Cpp11Test.cpp

Issue 568913002: Add a test that uses C++11 features as a compiler canary. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: ios? Created 6 years, 3 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 | « gyp/tests.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/Cpp11Test.cpp
diff --git a/tests/TracingTest.cpp b/tests/Cpp11Test.cpp
similarity index 60%
copy from tests/TracingTest.cpp
copy to tests/Cpp11Test.cpp
index 730a46ce4d734a04ea18d68de6031b7e51d3d506..627c4d4f6927853626652c1c238e1398478f527a 100644
--- a/tests/TracingTest.cpp
+++ b/tests/Cpp11Test.cpp
@@ -5,9 +5,10 @@
* found in the LICENSE file.
*/
-#include "SkTraceEvent.h"
#include "Test.h"
-DEF_TEST(Tracing, reporter) {
- TRACE_EVENT0("skia.testing", "just a test");
+DEF_TEST(Cpp11, r) {
+ auto square = [](int x){ return x*x; };
+
+ REPORTER_ASSERT(r, square(4) == 16);
}
« no previous file with comments | « gyp/tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698