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

Unified Diff: tests/CPlusPlusEleven.cpp

Issue 2278703002: SkPDF: Glyph validation change (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix comment Created 4 years, 4 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 | « src/pdf/SkScopeExit.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/CPlusPlusEleven.cpp
diff --git a/tests/CPlusPlusEleven.cpp b/tests/CPlusPlusEleven.cpp
index 3130e6f95bd1edf99cdccd74b600e921abe68ab9..bbd8a12f88dcee4c03505af4f8e98717d88a8c97 100644
--- a/tests/CPlusPlusEleven.cpp
+++ b/tests/CPlusPlusEleven.cpp
@@ -6,6 +6,7 @@
*/
#include "Test.h"
#include "SkTemplates.h"
+#include "SkScopeExit.h"
#include <utility>
namespace {
@@ -55,3 +56,12 @@ DEF_TEST(CPlusPlusEleven_default_move, r) {
REPORTER_ASSERT(r, b.fFoo.fCopied);
REPORTER_ASSERT(r, !c.fFoo.fCopied);
}
+
+DEF_TEST(SkAtScopeExit, r) {
+ int x = 5;
+ {
+ SK_AT_SCOPE_EXIT(x--);
+ REPORTER_ASSERT(r, x == 5);
+ }
+ REPORTER_ASSERT(r, x == 4);
+}
« no previous file with comments | « src/pdf/SkScopeExit.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698