OLD | NEW |
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 "src/value-serializer.h" | 5 #include "src/value-serializer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "include/v8.h" | 10 #include "include/v8.h" |
11 #include "src/api.h" | 11 #include "src/api.h" |
12 #include "src/base/build_config.h" | 12 #include "src/base/build_config.h" |
| 13 #include "src/objects-inl.h" |
13 #include "test/unittests/test-utils.h" | 14 #include "test/unittests/test-utils.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 | 17 |
17 namespace v8 { | 18 namespace v8 { |
18 namespace { | 19 namespace { |
19 | 20 |
20 using ::testing::_; | 21 using ::testing::_; |
21 using ::testing::Invoke; | 22 using ::testing::Invoke; |
22 using ::testing::Return; | 23 using ::testing::Return; |
(...skipping 2540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2563 InvalidDecodeTest(raw); | 2564 InvalidDecodeTest(raw); |
2564 } | 2565 } |
2565 | 2566 |
2566 TEST_F(ValueSerializerTestWithWasm, DecodeWasmModuleWithInvalidDataLength) { | 2567 TEST_F(ValueSerializerTestWithWasm, DecodeWasmModuleWithInvalidDataLength) { |
2567 InvalidDecodeTest({0xff, 0x09, 0x3f, 0x00, 0x57, 0x79, 0x7f, 0x00}); | 2568 InvalidDecodeTest({0xff, 0x09, 0x3f, 0x00, 0x57, 0x79, 0x7f, 0x00}); |
2568 InvalidDecodeTest({0xff, 0x09, 0x3f, 0x00, 0x57, 0x79, 0x00, 0x7f}); | 2569 InvalidDecodeTest({0xff, 0x09, 0x3f, 0x00, 0x57, 0x79, 0x00, 0x7f}); |
2569 } | 2570 } |
2570 | 2571 |
2571 } // namespace | 2572 } // namespace |
2572 } // namespace v8 | 2573 } // namespace v8 |
OLD | NEW |