| 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("dialogs") { | 5 source_set("dialogs") { |
| 6 deps = [ | 6 deps = [ |
| 7 "//base", | 7 "//base", |
| 8 "//ios/web:web", | 8 "//ios/web", |
| 9 ] | 9 ] |
| 10 | 10 |
| 11 sources = [ | 11 sources = [ |
| 12 "javascript_dialog_blocking_util.h", | 12 "javascript_dialog_blocking_util.h", |
| 13 "javascript_dialog_blocking_util.mm", | 13 "javascript_dialog_blocking_util.mm", |
| 14 ] | 14 ] |
| 15 | 15 |
| 16 configs += [ "//build/config/compiler:enable_arc" ] | 16 configs += [ "//build/config/compiler:enable_arc" ] |
| 17 } | 17 } |
| 18 | 18 |
| 19 source_set("unit_tests") { | 19 source_set("unit_tests") { |
| 20 testonly = true | 20 testonly = true |
| 21 | 21 |
| 22 sources = [ | 22 sources = [ |
| 23 "javascript_dialog_blocking_util_unittest.mm", | 23 "javascript_dialog_blocking_util_unittest.mm", |
| 24 ] | 24 ] |
| 25 | 25 |
| 26 deps = [ | 26 deps = [ |
| 27 ":dialogs", | 27 ":dialogs", |
| 28 "//ios/web", |
| 28 "//ios/web:test_support", | 29 "//ios/web:test_support", |
| 29 "//ios/web:web", | |
| 30 "//testing/gtest", | 30 "//testing/gtest", |
| 31 ] | 31 ] |
| 32 | 32 |
| 33 configs += [ "//build/config/compiler:enable_arc" ] | 33 configs += [ "//build/config/compiler:enable_arc" ] |
| 34 } | 34 } |
| 35 | 35 |
| 36 source_set("dialogs_internal") { | 36 source_set("dialogs_internal") { |
| 37 sources = [ | 37 sources = [ |
| 38 "dialog_presenter.h", | 38 "dialog_presenter.h", |
| 39 "dialog_presenter.mm", | 39 "dialog_presenter.mm", |
| 40 "java_script_dialog_presenter_impl.h", | 40 "java_script_dialog_presenter_impl.h", |
| 41 "java_script_dialog_presenter_impl.mm", | 41 "java_script_dialog_presenter_impl.mm", |
| 42 "nsurl_protection_space_util.h", | 42 "nsurl_protection_space_util.h", |
| 43 "nsurl_protection_space_util.mm", | 43 "nsurl_protection_space_util.mm", |
| 44 ] | 44 ] |
| 45 deps = [ | 45 deps = [ |
| 46 ":dialogs", |
| 46 "//base", | 47 "//base", |
| 47 "//components/strings", | 48 "//components/strings", |
| 48 "//components/url_formatter", | 49 "//components/url_formatter", |
| 49 "//ios/chrome/app/strings", | 50 "//ios/chrome/app/strings", |
| 50 "//ios/chrome/browser/ui", | 51 "//ios/chrome/browser/ui", |
| 51 "//ios/chrome/browser/ui/alert_coordinator", | 52 "//ios/chrome/browser/ui/alert_coordinator", |
| 52 "//ios/chrome/browser/ui/dialogs", | |
| 53 "//ios/web", | 53 "//ios/web", |
| 54 "//ui/base", | 54 "//ui/base", |
| 55 "//url", | 55 "//url", |
| 56 ] | 56 ] |
| 57 libs = [ "UIKit.framework" ] | 57 libs = [ "UIKit.framework" ] |
| 58 } | 58 } |
| 59 | 59 |
| 60 source_set("unit_tests_internal") { | 60 source_set("unit_tests_internal") { |
| 61 testonly = true | 61 testonly = true |
| 62 sources = [ | 62 sources = [ |
| 63 "dialog_presenter_unittest.mm", | 63 "dialog_presenter_unittest.mm", |
| 64 "nsurl_protection_space_util_unittest.mm", | 64 "nsurl_protection_space_util_unittest.mm", |
| 65 ] | 65 ] |
| 66 deps = [ | 66 deps = [ |
| 67 ":dialogs_internal", | 67 ":dialogs_internal", |
| 68 "//base", | 68 "//base", |
| 69 "//components/strings", | 69 "//components/strings", |
| 70 "//ios/chrome/app/strings", | 70 "//ios/chrome/app/strings", |
| 71 "//ios/chrome/browser/ui/alert_coordinator", | 71 "//ios/chrome/browser/ui/alert_coordinator", |
| 72 "//ios/web", |
| 72 "//ios/web:test_support", | 73 "//ios/web:test_support", |
| 73 "//ios/web:web", | |
| 74 "//testing/gtest", | 74 "//testing/gtest", |
| 75 "//ui/base", | 75 "//ui/base", |
| 76 "//url", | 76 "//url", |
| 77 ] | 77 ] |
| 78 } | 78 } |
| 79 | 79 |
| 80 source_set("eg_tests") { | 80 source_set("eg_tests") { |
| 81 configs += [ "//build/config/compiler:enable_arc" ] | 81 configs += [ "//build/config/compiler:enable_arc" ] |
| 82 testonly = true | 82 testonly = true |
| 83 sources = [ | 83 sources = [ |
| 84 "javascript_dialog_egtest.mm", | 84 "javascript_dialog_egtest.mm", |
| 85 ] | 85 ] |
| 86 deps = [ | 86 deps = [ |
| 87 ":dialogs_internal", |
| 87 "//base", | 88 "//base", |
| 88 "//components/strings", | 89 "//components/strings", |
| 89 "//ios/chrome/app/strings", | 90 "//ios/chrome/app/strings", |
| 90 "//ios/chrome/browser/ui", | 91 "//ios/chrome/browser/ui", |
| 91 "//ios/chrome/browser/ui/dialogs:dialogs_internal", | |
| 92 "//ios/chrome/browser/ui/tools_menu", | 92 "//ios/chrome/browser/ui/tools_menu", |
| 93 "//ios/chrome/test/app:test_support", | 93 "//ios/chrome/test/app:test_support", |
| 94 "//ios/chrome/test/earl_grey:test_support", | 94 "//ios/chrome/test/earl_grey:test_support", |
| 95 "//ios/testing:ios_test_support", | 95 "//ios/testing:ios_test_support", |
| 96 "//ios/testing/earl_grey:earl_grey_support", | 96 "//ios/testing/earl_grey:earl_grey_support", |
| 97 "//ios/third_party/earl_grey", | 97 "//ios/third_party/earl_grey", |
| 98 "//ios/web", | 98 "//ios/web", |
| 99 "//ios/web:test_support", | 99 "//ios/web:test_support", |
| 100 "//ui/base", | 100 "//ui/base", |
| 101 "//url", | 101 "//url", |
| 102 ] | 102 ] |
| 103 libs = [ | 103 libs = [ |
| 104 "UIKit.framework", | 104 "UIKit.framework", |
| 105 "XCTest.framework", | 105 "XCTest.framework", |
| 106 ] | 106 ] |
| 107 } | 107 } |
| OLD | NEW |