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

Unified Diff: test/unittests/wasm/ast-decoder-unittest.cc

Issue 2359573003: [wasm] Reset the wasm_eh_prototype flag after unittests (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/wasm/ast-decoder-unittest.cc
diff --git a/test/unittests/wasm/ast-decoder-unittest.cc b/test/unittests/wasm/ast-decoder-unittest.cc
index f508094ef361cfc4859ca635ffa9bb12391e9692..05f94109ab7eb4637cacdfc2a706199c4c1681fd 100644
--- a/test/unittests/wasm/ast-decoder-unittest.cc
+++ b/test/unittests/wasm/ast-decoder-unittest.cc
@@ -65,12 +65,21 @@ static const WasmOpcode kInt32BinopOpcodes[] = {
Verify(kSuccess, sigs.v_i(), code, code + sizeof(code)); \
} while (false)
+static bool old_eh_flag;
+
class AstDecoderTest : public TestWithZone {
public:
typedef std::pair<uint32_t, LocalType> LocalsDecl;
AstDecoderTest() : module(nullptr), local_decls(zone()) {}
+ static void SetUpTestCase() { old_eh_flag = FLAG_wasm_eh_prototype; }
+
+ static void TearDownTestCase() {
+ // Reset the wasm_eh_prototype flag
+ FLAG_wasm_eh_prototype = old_eh_flag;
+ }
+
TestSignatures sigs;
ModuleEnv* module;
LocalDeclEncoder local_decls;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698