| 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 source_set("voice") { | 5 source_set("voice") { |
| 6 sources = [ | 6 sources = [ |
| 7 "text_to_speech_player.h", | 7 "text_to_speech_player.h", |
| 8 "text_to_speech_player.mm", | 8 "text_to_speech_player.mm", |
| 9 "voice_search_notification_names.h", | 9 "voice_search_notification_names.h", |
| 10 "voice_search_notification_names.mm", | 10 "voice_search_notification_names.mm", |
| 11 ] | 11 ] |
| 12 | 12 |
| 13 deps = [ | 13 deps = [ |
| 14 "//base", | 14 "//base", |
| 15 ] | 15 ] |
| 16 | 16 |
| 17 libs = [ "AVFoundation.framework" ] | 17 libs = [ "AVFoundation.framework" ] |
| 18 } | 18 } |
| 19 | 19 |
| 20 source_set("unit_tests") { | 20 source_set("unit_tests") { |
| 21 testonly = true | 21 testonly = true |
| 22 | 22 |
| 23 sources = [ | 23 sources = [ |
| 24 "text_to_speech_player_unittest.mm", | 24 "text_to_speech_player_unittest.mm", |
| 25 ] | 25 ] |
| 26 | 26 |
| 27 deps = [ | 27 deps = [ |
| 28 ":voice_unit_tests_bundle_data", |
| 28 "//base", | 29 "//base", |
| 29 "//base/test:test_support", | 30 "//base/test:test_support", |
| 30 "//ios/web", | 31 "//ios/web", |
| 31 "//ios/web:test_support", | 32 "//ios/web:test_support", |
| 32 "//testing/gtest", | 33 "//testing/gtest", |
| 33 "//url", | 34 "//url", |
| 34 ] | 35 ] |
| 35 | 36 |
| 36 public_deps = [ | 37 public_deps = [ |
| 37 ":voice", | 38 ":voice", |
| 38 ] | 39 ] |
| 39 } | 40 } |
| 41 |
| 42 bundle_data("voice_unit_tests_bundle_data") { |
| 43 visibility = [ ":unit_tests" ] |
| 44 testonly = true |
| 45 sources = [ |
| 46 "//ios/chrome/test/data/voice/test_sound.m4a", |
| 47 ] |
| 48 outputs = [ |
| 49 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + |
| 50 "{{source_file_part}}", |
| 51 ] |
| 52 } |
| OLD | NEW |