| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 5 |
| 6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 10 [ rebase_path("media_router.gypi") ], | 10 [ rebase_path("media_router.gypi") ], |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 mojom("mojo_bindings") { | 39 mojom("mojo_bindings") { |
| 40 sources = [ | 40 sources = [ |
| 41 "media_router.mojom", | 41 "media_router.mojom", |
| 42 ] | 42 ] |
| 43 } | 43 } |
| 44 | 44 |
| 45 source_set("test_support") { | 45 source_set("test_support") { |
| 46 testonly = true | 46 testonly = true |
| 47 deps = [ | 47 deps = [ |
| 48 # TODO(crbug.com/596999): Move non-Android code to mojo/ |
| 48 ":mojo_bindings", | 49 ":mojo_bindings", |
| 49 ":router", | 50 ":router", |
| 50 "//chrome/test:test_support", | 51 "//chrome/test:test_support", |
| 51 "//testing/gmock", | 52 "//testing/gmock", |
| 52 ] | 53 ] |
| 53 sources = rebase_path(gypi_values.media_router_test_support_sources, | 54 sources = rebase_path(gypi_values.media_router_test_support_sources, |
| 54 ".", | 55 ".", |
| 55 "//chrome/browser/media/router") | 56 "//chrome/browser/media/router") |
| 57 if (!is_android) { |
| 58 deps += [ "//extensions/common" ] |
| 59 sources += |
| 60 rebase_path(gypi_values.media_router_non_android_test_support_sources, |
| 61 ".", |
| 62 "//chrome/browser/media/router") |
| 63 } |
| 56 } | 64 } |
| OLD | NEW |