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("resources") { | 5 bundle_data("resources") { |
6 sources = [ | 6 sources = [ |
7 "resources/fatal_error.png", | 7 "resources/fatal_error.png", |
8 "resources/fatal_error@2x.png", | 8 "resources/fatal_error@2x.png", |
9 "resources/fatal_error@3x.png", | 9 "resources/fatal_error@3x.png", |
10 ] | 10 ] |
11 outputs = [ | 11 outputs = [ |
12 "{{bundle_resources_dir}}/{{source_file_part}}", | 12 "{{bundle_resources_dir}}/{{source_file_part}}", |
13 ] | 13 ] |
14 } | 14 } |
15 | |
16 source_set("safe_mode") { | |
17 sources = [ | |
18 "safe_mode_coordinator.h", | |
19 "safe_mode_coordinator.mm", | |
20 "safe_mode_view_controller.h", | |
21 "safe_mode_view_controller.mm", | |
22 ] | |
23 | |
24 deps = [ | |
25 "//base", | |
26 "//ios/chrome/app", | |
27 "//ios/chrome/app/safe_mode:resources", | |
28 "//ios/chrome/app/strings", | |
29 "//ios/chrome/browser", | |
30 "//ios/chrome/browser/crash_report", | |
31 "//ios/chrome/browser/ui", | |
32 "//ios/chrome/browser/ui/fancy_ui", | |
33 "//ui/gfx", | |
34 ] | |
35 | |
36 libs = [ "UIKit.framework" ] | |
37 } | |
38 | |
39 source_set("eg_tests") { | |
40 testonly = true | |
41 sources = [ | |
42 "safe_mode_egtest.mm", | |
43 ] | |
44 deps = [ | |
45 ":safe_mode", | |
46 "//base", | |
47 "//ios/chrome/app:app_internal", | |
48 "//ios/chrome/app/strings", | |
49 "//ios/chrome/browser/ui/main", | |
50 "//ios/chrome/test/base", | |
51 "//ios/chrome/test/earl_grey:test_support", | |
52 "//ios/third_party/earl_grey", | |
53 ] | |
54 } | |
55 | |
56 source_set("unit_tests") { | |
57 testonly = true | |
58 sources = [ | |
59 "safe_mode_coordinator_unittest.mm", | |
60 "safe_mode_view_controller_unittest.mm", | |
61 ] | |
62 deps = [ | |
63 ":safe_mode", | |
64 "//base", | |
65 "//breakpad:client", | |
66 "//ios/chrome/browser/crash_report", | |
67 "//ios/chrome/test/base", | |
68 "//ios/chrome/test/ocmock", | |
69 "//testing/gtest", | |
70 "//third_party/ocmock", | |
71 ] | |
72 libs = [ "UIKit.framework" ] | |
73 } | |
OLD | NEW |