1# Copyright 2021 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//mojo/public/tools/bindings/mojom.gni") 6 7mojom("mojom") { 8 sources = [ "event.mojom" ] 9 10 public_deps = [ "//mojo/public/mojom/base" ] 11 12 cpp_typemaps = [ 13 { 14 types = [ 15 { 16 mojom = "metrics.structured.mojom.Event" 17 cpp = "::metrics::structured::Event" 18 move_only = true 19 }, 20 ] 21 traits_headers = [ "event_mojom_traits.h" ] 22 traits_sources = [ "event_mojom_traits.cc" ] 23 traits_public_deps = [ "//components/metrics/structured:events" ] 24 }, 25 ] 26} 27 28source_set("unit_tests") { 29 testonly = true 30 sources = [ "mojom_traits_unittest.cc" ] 31 deps = [ 32 ":mojom", 33 "//components/metrics/structured:events", 34 "//mojo/public/cpp/test_support:test_utils", 35 "//testing/gmock", 36 "//testing/gtest", 37 ] 38} 39