Commit 75beca72 authored by Feng Yu's avatar Feng Yu Committed by V8 LUCI CQ

[test] Migrate cctest/parsing/test-preparser to unittests/

Bug: v8:12781
Change-Id: I5b605db296c2a2813a44f05c74500cc1a0049f57
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3832175
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82668}
parent 4be9de90
...@@ -85,6 +85,9 @@ v8_source_set("cctest_sources") { ...@@ -85,6 +85,9 @@ v8_source_set("cctest_sources") {
"../common/c-signature.h", "../common/c-signature.h",
"../common/call-tester.h", "../common/call-tester.h",
"../common/flag-utils.h", "../common/flag-utils.h",
"../common/scope-test-helper.h",
"../common/unicode-helpers.cc",
"../common/unicode-helpers.h",
"../common/value-helper.cc", "../common/value-helper.cc",
"../common/value-helper.h", "../common/value-helper.h",
"cctest-utils.h", "cctest-utils.h",
...@@ -154,12 +157,10 @@ v8_source_set("cctest_sources") { ...@@ -154,12 +157,10 @@ v8_source_set("cctest_sources") {
"heap/test-weak-references.cc", "heap/test-weak-references.cc",
"heap/test-write-barrier.cc", "heap/test-write-barrier.cc",
"manually-externalized-buffer.h", "manually-externalized-buffer.h",
"parsing/test-preparser.cc",
"print-extension.cc", "print-extension.cc",
"print-extension.h", "print-extension.h",
"profiler-extension.cc", "profiler-extension.cc",
"profiler-extension.h", "profiler-extension.h",
"scope-test-helper.h",
"setup-isolate-for-tests.cc", "setup-isolate-for-tests.cc",
"setup-isolate-for-tests.h", "setup-isolate-for-tests.h",
"test-accessor-assembler.cc", "test-accessor-assembler.cc",
...@@ -219,8 +220,6 @@ v8_source_set("cctest_sources") { ...@@ -219,8 +220,6 @@ v8_source_set("cctest_sources") {
"torque/test-torque.cc", "torque/test-torque.cc",
"trace-extension.cc", "trace-extension.cc",
"trace-extension.h", "trace-extension.h",
"unicode-helpers.cc",
"unicode-helpers.h",
] ]
if (v8_current_cpu == "arm") { if (v8_current_cpu == "arm") {
......
This diff is collapsed.
...@@ -49,8 +49,8 @@ ...@@ -49,8 +49,8 @@
#include "src/parsing/token.h" #include "src/parsing/token.h"
#include "src/zone/zone-list-inl.h" // crbug.com/v8/8816 #include "src/zone/zone-list-inl.h" // crbug.com/v8/8816
#include "test/cctest/cctest.h" #include "test/cctest/cctest.h"
#include "test/cctest/scope-test-helper.h" #include "test/common/scope-test-helper.h"
#include "test/cctest/unicode-helpers.h" #include "test/common/unicode-helpers.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
// Copyright 2017 the V8 project authors. All rights reserved. // Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef V8_CCTEST_SCOPE_TEST_HELPER_H_ #ifndef V8_COMMON_SCOPE_TEST_HELPER_H_
#define V8_CCTEST_SCOPE_TEST_HELPER_H_ #define V8_COMMON_SCOPE_TEST_HELPER_H_
#include "src/ast/scopes.h" #include "src/ast/scopes.h"
#include "src/ast/variables.h" #include "src/ast/variables.h"
...@@ -120,4 +120,4 @@ class ScopeTestHelper { ...@@ -120,4 +120,4 @@ class ScopeTestHelper {
} // namespace internal } // namespace internal
} // namespace v8 } // namespace v8
#endif // V8_CCTEST_SCOPE_TEST_HELPER_H_ #endif // V8_COMMON_SCOPE_TEST_HELPER_H_
// Copyright 2018 the V8 project authors. All rights reserved. // Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "test/cctest/unicode-helpers.h" #include "test/common/unicode-helpers.h"
#include "src/strings/unicode-inl.h" #include "src/strings/unicode-inl.h"
int Ucs2CharLength(unibrow::uchar c) { int Ucs2CharLength(unibrow::uchar c) {
......
// Copyright 2017 the V8 project authors. All rights reserved. // Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef V8_CCTEST_UNICODE_HELPERS_H_ #ifndef V8_COMMON_UNICODE_HELPERS_H_
#define V8_CCTEST_UNICODE_HELPERS_H_ #define V8_COMMON_UNICODE_HELPERS_H_
#include "src/strings/unicode.h" #include "src/strings/unicode.h"
int Ucs2CharLength(unibrow::uchar c); int Ucs2CharLength(unibrow::uchar c);
int Utf8LengthHelper(const char* s); int Utf8LengthHelper(const char* s);
#endif // V8_CCTEST_UNICODE_HELPERS_H_ #endif // V8_COMMON_UNICODE_HELPERS_H_
...@@ -229,6 +229,9 @@ v8_source_set("unittests_sources") { ...@@ -229,6 +229,9 @@ v8_source_set("unittests_sources") {
"../../testing/gtest-support.h", "../../testing/gtest-support.h",
"../common/c-signature.h", "../common/c-signature.h",
"../common/call-tester.h", "../common/call-tester.h",
"../common/scope-test-helper.h",
"../common/unicode-helpers.cc",
"../common/unicode-helpers.h",
"../common/value-helper.cc", "../common/value-helper.cc",
"../common/value-helper.h", "../common/value-helper.h",
"api/access-check-unittest.cc", "api/access-check-unittest.cc",
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment