| 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 bundle_data("assets") { | 5 bundle_data("assets") { |
| 6 sources = [ | 6 sources = [ |
| 7 "resources/Icons.xcassets/ic_arrow_back.imageset/Contents.json", | 7 "resources/Icons.xcassets/ic_arrow_back.imageset/Contents.json", |
| 8 "resources/Icons.xcassets/ic_arrow_back.imageset/ic_arrow_back.png", | 8 "resources/Icons.xcassets/ic_arrow_back.imageset/ic_arrow_back.png", |
| 9 "resources/Icons.xcassets/ic_arrow_back.imageset/ic_arrow_back_2x.png", | 9 "resources/Icons.xcassets/ic_arrow_back.imageset/ic_arrow_back_2x.png", |
| 10 "resources/Icons.xcassets/ic_arrow_back.imageset/ic_arrow_back_3x.png", | 10 "resources/Icons.xcassets/ic_arrow_back.imageset/ic_arrow_back_3x.png", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 "resources/Icons.xcassets/ic_info.imageset/ic_info_3x.png", | 22 "resources/Icons.xcassets/ic_info.imageset/ic_info_3x.png", |
| 23 "resources/Icons.xcassets/ic_search.imageset/Contents.json", | 23 "resources/Icons.xcassets/ic_search.imageset/Contents.json", |
| 24 "resources/Icons.xcassets/ic_search.imageset/ic_search.png", | 24 "resources/Icons.xcassets/ic_search.imageset/ic_search.png", |
| 25 "resources/Icons.xcassets/ic_search.imageset/ic_search_2x.png", | 25 "resources/Icons.xcassets/ic_search.imageset/ic_search_2x.png", |
| 26 "resources/Icons.xcassets/ic_search.imageset/ic_search_3x.png", | 26 "resources/Icons.xcassets/ic_search.imageset/ic_search_3x.png", |
| 27 ] | 27 ] |
| 28 outputs = [ | 28 outputs = [ |
| 29 "{{bundle_resources_dir}}/{{source_file_part}}", | 29 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 30 ] | 30 ] |
| 31 } | 31 } |
| 32 | |
| 33 source_set("icons") { | |
| 34 sources = [ | |
| 35 "chrome_icon.h", | |
| 36 "chrome_icon.mm", | |
| 37 ] | |
| 38 deps = [ | |
| 39 "//base", | |
| 40 "//ios/chrome/app/strings", | |
| 41 "//ios/chrome/browser/ui/icons:assets", | |
| 42 "//ui/base", | |
| 43 ] | |
| 44 libs = [ | |
| 45 "CoreGraphics.framework", | |
| 46 "UIKit.framework", | |
| 47 ] | |
| 48 } | |
| 49 | |
| 50 source_set("unit_tests") { | |
| 51 testonly = true | |
| 52 sources = [ | |
| 53 "chrome_icon_unittest.mm", | |
| 54 ] | |
| 55 deps = [ | |
| 56 ":icons", | |
| 57 "//ios/chrome/app/strings", | |
| 58 "//testing/gtest", | |
| 59 "//third_party/ocmock", | |
| 60 "//ui/base", | |
| 61 ] | |
| 62 } | |
| OLD | NEW |