| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 | 6 |
| 7 mojom("interfaces") { | 7 mojom("interfaces") { |
| 8 sources = [ | 8 sources = [ |
| 9 "image.mojom", | 9 "image.mojom", |
| 10 ] | 10 ] |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 # Using a test service because the traits need to pass handles around. Revisit | 26 # Using a test service because the traits need to pass handles around. Revisit |
| 27 # this after Deserialize(Serialize()) API works with handles. | 27 # this after Deserialize(Serialize()) API works with handles. |
| 28 mojom("test_interfaces") { | 28 mojom("test_interfaces") { |
| 29 sources = [ | 29 sources = [ |
| 30 "image_traits_test_service.mojom", | 30 "image_traits_test_service.mojom", |
| 31 ] | 31 ] |
| 32 | 32 |
| 33 public_deps = [ | 33 public_deps = [ |
| 34 ":interfaces", | 34 ":interfaces", |
| 35 ] | 35 ] |
| 36 |
| 37 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. |
| 38 use_once_callback = false |
| 36 } | 39 } |
| 37 | 40 |
| 38 source_set("unit_test") { | 41 source_set("unit_test") { |
| 39 testonly = true | 42 testonly = true |
| 40 | 43 |
| 41 sources = [ | 44 sources = [ |
| 42 "image_traits_unittest.cc", | 45 "image_traits_unittest.cc", |
| 43 ] | 46 ] |
| 44 | 47 |
| 45 deps = [ | 48 deps = [ |
| 46 ":struct_traits", | 49 ":struct_traits", |
| 47 ":test_interfaces", | 50 ":test_interfaces", |
| 48 "//base", | 51 "//base", |
| 49 "//mojo/public/cpp/bindings", | 52 "//mojo/public/cpp/bindings", |
| 50 "//testing/gtest", | 53 "//testing/gtest", |
| 51 "//ui/gfx:test_support", | 54 "//ui/gfx:test_support", |
| 52 ] | 55 ] |
| 53 } | 56 } |
| OLD | NEW |