5ae5016590
This brings in third_party/inspector_protocol/encoding/encoding_test.cc from the upstream project and makes it work for v8's unittest suite. encoding_test_helper.h is a V8 specific implementation, which delegates to src/inspector/v8-string-conversions{.h,.cc}, for the utf8 / utf16 conversion routines. I'm also fixing / updating roll.py, for future rolls. Change-Id: I08e4784838ff81ef3ac328f783512b42c91b6bcd Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1597215 Reviewed-by: Adam Klein <adamk@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Johannes Henkel <johannes@chromium.org> Cr-Commit-Position: refs/heads/master@{#61393}
35 lines
761 B
Plaintext
35 lines
761 B
Plaintext
# 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.
|
|
|
|
static_library("encoding") {
|
|
sources = [
|
|
"encoding/encoding.cc",
|
|
"encoding/encoding.h",
|
|
]
|
|
}
|
|
|
|
# encoding_test is part of the unittests, defined in
|
|
# test/unittests/BUILD.gn.
|
|
|
|
import("../../gni/v8.gni")
|
|
|
|
v8_source_set("encoding_test") {
|
|
sources = [
|
|
"encoding/encoding_test.cc",
|
|
"encoding/encoding_test_helper.h",
|
|
]
|
|
configs = [
|
|
"../..:external_config",
|
|
"../..:internal_config_base",
|
|
]
|
|
deps = [
|
|
":encoding",
|
|
"../..:v8_libbase",
|
|
"../../src/inspector:inspector_string_conversions",
|
|
"//testing/gmock",
|
|
"//testing/gtest",
|
|
]
|
|
testonly = true
|
|
}
|