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

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

Issue 2929853003: Fix use of history timers in background threads. (Closed)
Patch Set: Make explicit when async_counters is needed. Created 3 years, 6 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/common/wasm/wasm-module-runner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/wasm/module-decoder-unittest.cc
diff --git a/test/unittests/wasm/module-decoder-unittest.cc b/test/unittests/wasm/module-decoder-unittest.cc
index b645ca17fc12a14f5be80bcf9f3ad9c4c55e1a6b..9cdbdde31529e1c2acc2ff80e040047fac32b579 100644
--- a/test/unittests/wasm/module-decoder-unittest.cc
+++ b/test/unittests/wasm/module-decoder-unittest.cc
@@ -141,14 +141,14 @@ class WasmModuleVerifyTest : public TestWithIsolateAndZone {
memcpy(temp, header, sizeof(header));
memcpy(temp + sizeof(header), module_start, size);
ModuleResult result =
- DecodeWasmModule(isolate(), temp, temp + total, false, kWasmOrigin);
+ SyncDecodeWasmModule(isolate(), temp, temp + total, false, kWasmOrigin);
delete[] temp;
return result;
}
ModuleResult DecodeModuleNoHeader(const byte* module_start,
const byte* module_end) {
- return DecodeWasmModule(isolate(), module_start, module_end, false,
- kWasmOrigin);
+ return SyncDecodeWasmModule(isolate(), module_start, module_end, false,
+ kWasmOrigin);
}
};
@@ -924,8 +924,8 @@ TEST_F(WasmFunctionVerifyTest, Ok_v_v_empty) {
kExprEnd // body
};
- FunctionResult result = DecodeWasmFunction(isolate(), zone(), get_env(), data,
- data + sizeof(data));
+ FunctionResult result = SyncDecodeWasmFunction(isolate(), zone(), get_env(),
+ data, data + sizeof(data));
EXPECT_OK(result);
if (result.val && result.ok()) {
« no previous file with comments | « test/common/wasm/wasm-module-runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698