| # Copyright 2016 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("keyboard") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "UIKeyCommand+Chrome.h", |
| "UIKeyCommand+Chrome.mm", |
| ] |
| deps = [ |
| "//base", |
| "//ios/chrome/browser/ui/commands", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ "UIKeyCommand+ChromeTest.mm" ] |
| deps = [ |
| ":keyboard", |
| "//base", |
| "//ios/chrome/browser/ui/commands", |
| "//testing/gtest", |
| ] |
| } |
| |
| source_set("eg2_tests") { |
| defines = [ "CHROME_EARL_GREY_2" ] |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ "keyboard_commands_egtest.mm" ] |
| deps = [ |
| "//components/strings", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/ui/bookmarks:constants", |
| "//ios/chrome/browser/ui/popup_menu:constants", |
| "//ios/chrome/browser/ui/table_view:constants", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//ios/third_party/earl_grey2:test_lib", |
| "//net:test_support", |
| ] |
| frameworks = [ |
| "UIKit.framework", |
| "XCTest.framework", |
| ] |
| } |