chromium/v8/test/unittests/torque/ls-json-unittest.cc

// Copyright 2019 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/torque/ls/json-parser.h"
#include "src/torque/ls/json.h"
#include "src/torque/source-positions.h"
#include "src/torque/utils.h"
#include "test/unittests/test-utils.h"
#include "testing/gmock-support.h"

namespace v8 {
namespace internal {
namespace torque {
namespace ls {

TEST(LanguageServerJson, TestJsonPrimitives) {}

TEST(LanguageServerJson, TestJsonStrings) {}

TEST(LanguageServerJson, TestJsonArrays) {}

TEST(LanguageServerJson, TestJsonObjects) {}

// These tests currently fail on Windows as there seems to be a linking
// issue with exceptions enabled for Torque.
// TODO(szuend): Remove the OS check when errors are reported differently,
//               or the issue is resolved.
// TODO(almuthanna): These tests were skipped because they cause a crash when
// they are ran on Fuchsia. This issue should be solved later on
// Ticket: https://crbug.com/1028617
#if !defined(V8_OS_WIN) && !defined(V8_TARGET_OS_FUCHSIA)
HasSubstr;
TEST(LanguageServerJson, ParserError) {}

TEST(LanguageServerJson, LexerError) {}
#endif

}  // namespace ls
}  // namespace torque
}  // namespace internal
}  // namespace v8