| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 if (is_android) { | 5 source_set("keyboard") { |
| 6 import("//build/config/android/rules.gni") | |
| 7 } | |
| 8 | |
| 9 static_library("request_header") { | |
| 10 sources = [ | 6 sources = [ |
| 11 "offline_page_header.cc", | 7 "UIKeyCommand+Chrome.h", |
| 12 "offline_page_header.h", | 8 "UIKeyCommand+Chrome.mm", |
| 9 "hardware_keyboard_watcher.h", |
| 10 "hardware_keyboard_watcher.mm", |
| 13 ] | 11 ] |
| 14 | |
| 15 deps = [ | 12 deps = [ |
| 16 "//base", | 13 "//base", |
| 14 "//ios/chrome/browser/ui/commands", |
| 17 ] | 15 ] |
| 18 } | 16 } |
| 19 | 17 |
| 20 source_set("unit_tests") { | 18 source_set("unit_tests") { |
| 21 testonly = true | 19 testonly = true |
| 22 sources = [ | 20 sources = [ |
| 23 "offline_page_header_unittest.cc", | 21 "UIKeyCommand+ChromeTest.mm", |
| 22 "hardware_keyboard_watcher_unittest.mm", |
| 24 ] | 23 ] |
| 25 | |
| 26 deps = [ | 24 deps = [ |
| 27 ":request_header", | 25 ":keyboard", |
| 28 "//base", | 26 "//base", |
| 29 "//base/test:test_support", | 27 "//base/test:test_support", |
| 28 "//ios/chrome/browser/ui/commands", |
| 30 "//testing/gtest", | 29 "//testing/gtest", |
| 30 "//third_party/ocmock", |
| 31 ] | 31 ] |
| 32 } | 32 } |
| OLD | NEW |