[ios] Move commands from shared/ to chrome/
Bug:
Change-Id: Iafec723490b1201b2b6bab4812f50d6e3c06271c
Reviewed-on: https://chromium-review.googlesource.com/616186
Commit-Queue: edchin <[email protected]>
Reviewed-by: Mark Cogan <[email protected]>
Cr-Commit-Position: refs/heads/master@{#494881}
diff --git a/ios/chrome/browser/ui/commands/BUILD.gn b/ios/chrome/browser/ui/commands/BUILD.gn
index d165a0b..e648f4a 100644
--- a/ios/chrome/browser/ui/commands/BUILD.gn
+++ b/ios/chrome/browser/ui/commands/BUILD.gn
@@ -12,6 +12,8 @@
"browser_commands.h",
"clear_browsing_data_command.h",
"clear_browsing_data_command.mm",
+ "command_dispatcher.h",
+ "command_dispatcher.mm",
"generic_chrome_command.h",
"generic_chrome_command.mm",
"history_popup_commands.h",
@@ -34,9 +36,23 @@
"//base",
"//components/browsing_data/core",
"//components/signin/core/browser",
- "//ios/shared/chrome/browser/ui/commands",
+ "//ios/chrome/browser/ui/metrics",
"//ios/web",
"//net",
"//url",
]
}
+
+source_set("unit_tests") {
+ testonly = true
+ configs += [ "//build/config/compiler:enable_arc" ]
+ sources = [
+ "command_dispatcher_unittest.mm",
+ ]
+ deps = [
+ ":commands",
+ "//base",
+ "//ios/chrome/browser/ui/metrics",
+ "//testing/gtest",
+ ]
+}