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

Unified Diff: tests/UnitTestTest.cpp

Issue 23174002: Fix crash when querying a runtime config that is defined in environment (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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/utils/SkRTConf.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/UnitTestTest.cpp
diff --git a/tests/UnitTestTest.cpp b/tests/UnitTestTest.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..e3e1b97685f63f23dff4892fe6ba0a4875d4e6f9
--- /dev/null
+++ b/tests/UnitTestTest.cpp
@@ -0,0 +1,18 @@
+/*
+ * Copyright 2013 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "SkRTConf.h"
+#include "Test.h"
+
+static void test_runUnitTests(skiatest::Reporter* reporter) {
+#ifdef SK_SUPPORT_UNITTEST
+ SkRTConfRegistry::UnitTest();
+#endif
+}
+
+#include "TestClassDef.h"
+DEFINE_TESTCLASS("UnitTest", UnitTestTestClass, test_runUnitTests)
« no previous file with comments | « src/utils/SkRTConf.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698