| # Copyright 2018 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/testing/environments.gni") |
| import("//src/sys/build/components.gni") |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ ":cmx_facet_parser_tests" ] |
| } |
| |
| source_set("cmx_facet_parser") { |
| sources = [ |
| "cmx_facet_parser.cc", |
| "cmx_facet_parser.h", |
| ] |
| |
| deps = [ |
| "//sdk/lib/fit", |
| "//src/lib/fxl", |
| "//src/lib/json_parser", |
| "//src/lib/pkg_url", |
| "//third_party/rapidjson", |
| "//zircon/system/ulib/trace", |
| ] |
| } |
| |
| executable("cmx_facet_parser_unittest") { |
| testonly = true |
| |
| sources = [ "cmx_facet_parser_unittest.cc" ] |
| |
| deps = [ |
| ":cmx_facet_parser", |
| "//garnet/public/lib/gtest", |
| "//garnet/public/lib/json", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/pkg_url", |
| "//third_party/googletest:gmock", |
| "//third_party/rapidjson", |
| ] |
| } |
| |
| fuchsia_unittest_package("cmx_facet_parser_tests") { |
| manifest = "meta/cmx_facet_parser_unittest.cmx" |
| deps = [ ":cmx_facet_parser_unittest" ] |
| test_specs = { |
| environments = [ emu_env ] |
| } |
| } |