| 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 source_set("tab_collection") { | 5 source_set("tab_collection") { |
| 6 sources = [ | 6 sources = [ |
| 7 "tab_collection_mediator.h", | 7 "tab_collection_mediator.h", |
| 8 "tab_collection_mediator.mm", | 8 "tab_collection_mediator.mm", |
| 9 ] | 9 ] |
| 10 deps = [ | 10 deps = [ |
| 11 ":tab_collection_ui", | 11 ":tab_collection_ui", |
| 12 "//base", | 12 "//base", |
| 13 "//ios/chrome/browser/web_state_list", | 13 "//ios/chrome/browser/web_state_list", |
| 14 "//ios/web", | 14 "//ios/web", |
| 15 ] | 15 ] |
| 16 configs += [ "//build/config/compiler:enable_arc" ] | 16 configs += [ "//build/config/compiler:enable_arc" ] |
| 17 } | 17 } |
| 18 | 18 |
| 19 source_set("tab_collection_ui") { | 19 source_set("tab_collection_ui") { |
| 20 sources = [ | 20 sources = [ |
| 21 "tab_collection_consumer.h", | 21 "tab_collection_consumer.h", |
| 22 "tab_collection_data_source.h", | 22 "tab_collection_item.h", |
| 23 "tab_collection_item.mm", |
| 23 "tab_collection_tab_cell.h", | 24 "tab_collection_tab_cell.h", |
| 24 "tab_collection_tab_cell.mm", | 25 "tab_collection_tab_cell.mm", |
| 25 "tab_collection_view_controller.h", | 26 "tab_collection_view_controller.h", |
| 26 "tab_collection_view_controller.mm", | 27 "tab_collection_view_controller.mm", |
| 27 ] | 28 ] |
| 28 deps = [ | 29 deps = [ |
| 29 "//base", | 30 "//base", |
| 30 "//ios/chrome/browser/ui/tab_switcher", | 31 "//ios/chrome/browser/ui/tab_switcher", |
| 31 "//ios/clean/chrome/browser/ui/commands", | 32 "//ios/clean/chrome/browser/ui/commands", |
| 32 ] | 33 ] |
| 33 configs += [ "//build/config/compiler:enable_arc" ] | 34 configs += [ "//build/config/compiler:enable_arc" ] |
| 34 } | 35 } |
| 35 | 36 |
| 36 source_set("unit_tests") { | 37 source_set("unit_tests") { |
| 37 sources = [ | 38 sources = [ |
| 38 "tab_collection_mediator_unittest.mm", | 39 "tab_collection_mediator_unittest.mm", |
| 40 "tab_collection_view_controller_unittest.mm", |
| 39 ] | 41 ] |
| 40 deps = [ | 42 deps = [ |
| 41 ":tab_collection", | 43 ":tab_collection", |
| 42 ":tab_collection_ui", | 44 ":tab_collection_ui", |
| 43 "//base", | 45 "//base", |
| 44 "//base/test:test_support", | 46 "//base/test:test_support", |
| 45 "//ios/chrome/browser/web_state_list", | 47 "//ios/chrome/browser/web_state_list", |
| 46 "//ios/chrome/browser/web_state_list:test_support", | 48 "//ios/chrome/browser/web_state_list:test_support", |
| 47 "//ios/chrome/test/base", | 49 "//ios/chrome/test/base", |
| 48 "//ios/web:test_support", | 50 "//ios/web:test_support", |
| 49 "//testing/gtest", | 51 "//testing/gtest", |
| 50 "//third_party/ocmock", | 52 "//third_party/ocmock", |
| 51 "//url:url", | 53 "//url:url", |
| 52 ] | 54 ] |
| 53 configs += [ "//build/config/compiler:enable_arc" ] | 55 configs += [ "//build/config/compiler:enable_arc" ] |
| 54 testonly = true | 56 testonly = true |
| 55 } | 57 } |
| OLD | NEW |