| # Copyright 2023 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/test.gni") | |
| test("unittests") { | |
| output_name = "analytics_cpp_google_analytics_4_unittests" | |
| sources = [ | |
| "batch_unittest.cc", | |
| "client_unittest.cc", | |
| ] | |
| deps = [ | |
| ":google_analytics_4", | |
| "//src/lib/fxl", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| "//third_party/rapidjson", | |
| ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":unittests" ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| static_library("google_analytics_4") { | |
| sources = [ | |
| "batch.cc", | |
| "client.cc", | |
| "event.cc", | |
| "measurement.cc", | |
| ] | |
| public = [ | |
| "batch.h", | |
| "client.h", | |
| "event.h", | |
| "measurement.h", | |
| "testing_client.h", | |
| ] | |
| visibility = [ | |
| "./*", | |
| "//src/lib/analytics/cpp/*", | |
| ] | |
| public_deps = [ | |
| "//sdk/lib/fit", | |
| "//sdk/lib/syslog/cpp", | |
| "//src/lib/fxl", | |
| "//third_party/rapidjson", | |
| ] | |
| } |