OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkTraceEvent.h" | |
9 #include "Test.h" | 8 #include "Test.h" |
10 | 9 |
11 DEF_TEST(Tracing, reporter) { | 10 DEF_TEST(Cpp11, r) { |
12 TRACE_EVENT0("skia.testing", "just a test"); | 11 auto square = [](int x){ return x*x; }; |
| 12 |
| 13 REPORTER_ASSERT(r, square(4) == 16); |
13 } | 14 } |
OLD | NEW |