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

Unified Diff: test/cctest/wasm/wasm-run-utils.h

Issue 1990923002: [wasm] Refactor WASM run tests to allow them to run in the interpreter too. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 | « test/cctest/wasm/test-run-wasm-asmjs.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/wasm/wasm-run-utils.h
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h
index 2d071a60eb5e72e0a0516cd6ba32c17b2263a628..a92c9ff50a760618dfabaea6cbe1f3152774edeb 100644
--- a/test/cctest/wasm/wasm-run-utils.h
+++ b/test/cctest/wasm/wasm-run-utils.h
@@ -658,6 +658,15 @@ class WasmRunner {
}
};
+// A macro to define tests that run in different engine configurations.
+// Currently only supports compiled tests, but a future
+// RunWasmInterpreted_##name version will allow each test to also run in the
+// interpreter.
+#define WASM_EXEC_TEST(name) \
+ void RunWasm_##name(); \
+ TEST(RunWasmCompiled_##name) { RunWasm_##name(); } \
ahaas 2016/05/18 15:43:26 Could we use shorter test names here? Maybe RunWas
+ void RunWasm_##name()
+
} // namespace
#endif
« no previous file with comments | « test/cctest/wasm/test-run-wasm-asmjs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698