# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//ios/build/config.gni")
import("//ios/web/public/js_messaging/optimize_ts.gni")
source_set("window_error") {
deps = [
":error_js",
"//base",
"//ios/web/common:features",
"//ios/web/public/js_messaging",
"//net",
"//url",
]
sources = [
"window_error_java_script_feature.h",
"window_error_java_script_feature.mm",
]
}
optimize_ts("error_js") {
visibility = [ ":window_error" ]
sources = [ "resources/error.ts" ]
deps = [ "//ios/web/public/js_messaging:util_scripts" ]
}
source_set("unittests") {
testonly = true
deps = [
":window_error",
"//base/test:test_support",
"//ios/web/js_messaging:java_script_feature",
"//ios/web/public/js_messaging",
"//ios/web/public/test",
"//ios/web/public/test:test_fixture",
"//testing/gtest",
]
sources = [ "window_error_java_script_feature_unittest.mm" ]
}