sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 1 | # Copyright 2016 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 | source_set("commands") { |
stkhapugin | 89b4755a4 | 2016-12-13 19:24:29 | [diff] [blame] | 6 | configs += [ "//build/config/compiler:enable_arc" ] |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 7 | sources = [ |
| 8 | "UIKit+ChromeExecuteCommand.h", |
| 9 | "UIKit+ChromeExecuteCommand.mm", |
Rohit Rao | 01e0e00 | 2017-08-14 20:49:43 | [diff] [blame] | 10 | "activity_service_commands.h", |
Mark Cogan | 5e3da15 | 2017-07-11 15:57:30 | [diff] [blame] | 11 | "application_commands.h", |
Mark Cogan | 6c58ea9 | 2017-07-06 13:08:24 | [diff] [blame] | 12 | "browser_commands.h", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 13 | "clear_browsing_data_command.h", |
| 14 | "clear_browsing_data_command.mm", |
edchin | 9badb06 | 2017-08-16 18:47:54 | [diff] [blame] | 15 | "command_dispatcher.h", |
| 16 | "command_dispatcher.mm", |
Louis Romero | d11747a | 2017-10-20 20:10:35 | [diff] [blame^] | 17 | "external_search_commands.h", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 18 | "generic_chrome_command.h", |
| 19 | "generic_chrome_command.mm", |
sczs | dd860eba | 2017-08-10 01:55:38 | [diff] [blame] | 20 | "history_popup_commands.h", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 21 | "ios_command_ids.h", |
Mark Cogan | dfcdea7 | 2017-07-18 13:47:38 | [diff] [blame] | 22 | "open_new_tab_command.h", |
| 23 | "open_new_tab_command.mm", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 24 | "open_url_command.h", |
| 25 | "open_url_command.mm", |
Gregory Chatzinoff | df93d69 | 2017-09-09 01:32:27 | [diff] [blame] | 26 | "page_info_commands.h", |
Rohit Rao | cda0a99 | 2017-08-16 15:37:11 | [diff] [blame] | 27 | "qr_scanner_commands.h", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 28 | "reading_list_add_command.h", |
| 29 | "reading_list_add_command.mm", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 30 | "show_signin_command.h", |
| 31 | "show_signin_command.mm", |
edchin | 7f210cd | 2017-09-28 08:03:53 | [diff] [blame] | 32 | "snackbar_commands.h", |
Jean-François Geyelin | 5d2e184c | 2017-07-28 19:48:00 | [diff] [blame] | 33 | "start_voice_search_command.h", |
| 34 | "start_voice_search_command.mm", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 35 | ] |
| 36 | deps = [ |
| 37 | "//base", |
| 38 | "//components/browsing_data/core", |
| 39 | "//components/signin/core/browser", |
edchin | 9badb06 | 2017-08-16 18:47:54 | [diff] [blame] | 40 | "//ios/chrome/browser/ui/metrics", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 41 | "//ios/web", |
| 42 | "//net", |
| 43 | "//url", |
| 44 | ] |
| 45 | } |
edchin | 9badb06 | 2017-08-16 18:47:54 | [diff] [blame] | 46 | |
| 47 | source_set("unit_tests") { |
| 48 | testonly = true |
| 49 | configs += [ "//build/config/compiler:enable_arc" ] |
| 50 | sources = [ |
| 51 | "command_dispatcher_unittest.mm", |
| 52 | ] |
| 53 | deps = [ |
| 54 | ":commands", |
| 55 | "//base", |
| 56 | "//ios/chrome/browser/ui/metrics", |
| 57 | "//testing/gtest", |
| 58 | ] |
| 59 | } |