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

Side by Side Diff: test/unittests/wasm/leb-helper-unittest.cc

Issue 2084573002: Upgrade Wasm JS API, step 1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Separate test refactorings Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "test/unittests/test-utils.h" 5 #include "test/unittests/test-utils.h"
6 6
7 #include "src/objects-inl.h"
7 #include "src/wasm/decoder.h" 8 #include "src/wasm/decoder.h"
8 #include "src/wasm/leb-helper.h" 9 #include "src/wasm/leb-helper.h"
9 10
10 namespace v8 { 11 namespace v8 {
11 namespace internal { 12 namespace internal {
12 namespace wasm { 13 namespace wasm {
13 14
14 class LEBHelperTest : public TestWithZone {}; 15 class LEBHelperTest : public TestWithZone {};
15 16
16 TEST_F(LEBHelperTest, sizeof_u32v) { 17 TEST_F(LEBHelperTest, sizeof_u32v) {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 CheckEncodeDecode_i64v(bit_cast<int64_t>(val)); 182 CheckEncodeDecode_i64v(bit_cast<int64_t>(val));
182 } 183 }
183 184
184 for (uint64_t val = 0xFFFFFFFFFFFFFF3B; val != 0; val = val << 1) { 185 for (uint64_t val = 0xFFFFFFFFFFFFFF3B; val != 0; val = val << 1) {
185 CheckEncodeDecode_i64v(bit_cast<int64_t>(val)); 186 CheckEncodeDecode_i64v(bit_cast<int64_t>(val));
186 } 187 }
187 } 188 }
188 } // namespace wasm 189 } // namespace wasm
189 } // namespace internal 190 } // namespace internal
190 } // namespace v8 191 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698