| 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/ | |
| 49 ":mojo_bindings", | |
| 50 ":router", | 48 ":router", |
| 51 "//chrome/test:test_support", | 49 "//chrome/test:test_support", |
| 52 "//testing/gmock", | 50 "//testing/gmock", |
| 53 ] | 51 ] |
| 54 sources = rebase_path(gypi_values.media_router_test_support_sources, | 52 sources = rebase_path(gypi_values.media_router_test_support_sources, |
| 55 ".", | 53 ".", |
| 56 "//chrome/browser/media/router") | 54 "//chrome/browser/media/router") |
| 57 if (!is_android) { | 55 if (!is_android) { |
| 58 deps += [ "//extensions/common" ] | 56 deps += [ |
| 57 ":mojo_bindings", |
| 58 "//extensions/common", |
| 59 ] |
| 59 sources += | 60 sources += |
| 60 rebase_path(gypi_values.media_router_non_android_test_support_sources, | 61 rebase_path(gypi_values.media_router_non_android_test_support_sources, |
| 61 ".", | 62 ".", |
| 62 "//chrome/browser/media/router") | 63 "//chrome/browser/media/router") |
| 63 } | 64 } |
| 64 } | 65 } |
| OLD | NEW |