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

Unified Diff: runtime/vm/assert_test.cc

Issue 2666133002: Added new type of unit test, RAW_UNIT_TEST_CASE, which is used for tests that can be flaky if run w… (Closed)
Patch Set: Fixed name of UNIT_TEST_CASE macro Created 3 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 | « runtime/vm/allocation_test.cc ('k') | runtime/vm/atomic_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assert_test.cc
diff --git a/runtime/vm/assert_test.cc b/runtime/vm/assert_test.cc
index dc935f1c099d82377baa0cd7d699078c194e90f6..d74b940edb28ebd5003e007ad0f89e5b69495602 100644
--- a/runtime/vm/assert_test.cc
+++ b/runtime/vm/assert_test.cc
@@ -6,14 +6,14 @@
#include "vm/unit_test.h"
-UNIT_TEST_CASE(Assert) {
+VM_UNIT_TEST_CASE(Assert) {
ASSERT(true);
ASSERT(87 == 87);
ASSERT(42 != 87);
}
-UNIT_TEST_CASE(Expect) {
+VM_UNIT_TEST_CASE(Expect) {
EXPECT(true);
EXPECT(87 == 87);
EXPECT(42 != 87);
@@ -48,16 +48,16 @@ UNIT_TEST_CASE(Expect) {
}
-UNIT_TEST_CASE(Fail0) {
+VM_UNIT_TEST_CASE(Fail0) {
FAIL("This test fails");
}
-UNIT_TEST_CASE(Fail1) {
+VM_UNIT_TEST_CASE(Fail1) {
FAIL1("This test fails with one argument: %d", 4);
}
-UNIT_TEST_CASE(Fail2) {
+VM_UNIT_TEST_CASE(Fail2) {
FAIL2("This test fails with two arguments: %d, %d", -100, 42);
}
« no previous file with comments | « runtime/vm/allocation_test.cc ('k') | runtime/vm/atomic_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698