OLD | NEW |
(Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 |
| 7 mojom("interfaces") { |
| 8 sources = [ |
| 9 "image.mojom", |
| 10 ] |
| 11 } |
| 12 |
| 13 source_set("struct_traits") { |
| 14 sources = [ |
| 15 "image_skia_struct_traits.cc", |
| 16 "image_skia_struct_traits.h", |
| 17 ] |
| 18 |
| 19 public_deps = [ |
| 20 ":interfaces_shared_cpp_sources", |
| 21 "//skia/public/interfaces", |
| 22 "//ui/gfx", |
| 23 ] |
| 24 } |
| 25 |
| 26 # Using a test service because the traits need to pass handles around. Revisit |
| 27 # this after Deserialize(Serialize()) API works with handles. |
| 28 mojom("test_interfaces") { |
| 29 sources = [ |
| 30 "image_traits_test_service.mojom", |
| 31 ] |
| 32 |
| 33 public_deps = [ |
| 34 ":interfaces", |
| 35 ] |
| 36 } |
| 37 |
| 38 source_set("unit_test") { |
| 39 testonly = true |
| 40 |
| 41 sources = [ |
| 42 "image_traits_unittest.cc", |
| 43 ] |
| 44 |
| 45 deps = [ |
| 46 ":struct_traits", |
| 47 ":test_interfaces", |
| 48 "//base", |
| 49 "//mojo/public/cpp/bindings", |
| 50 "//testing/gtest", |
| 51 "//ui/gfx:test_support", |
| 52 ] |
| 53 } |
OLD | NEW |