Index: ios/chrome/browser/ui/dialogs/BUILD.gn |
diff --git a/ios/chrome/browser/ui/dialogs/BUILD.gn b/ios/chrome/browser/ui/dialogs/BUILD.gn |
index 506aa95b1f60f137454163483636a29f24b7b043..6f7f5575739ef59a940d155c04e57a26f7373be5 100644 |
--- a/ios/chrome/browser/ui/dialogs/BUILD.gn |
+++ b/ios/chrome/browser/ui/dialogs/BUILD.gn |
@@ -32,3 +32,76 @@ source_set("unit_tests") { |
configs += [ "//build/config/compiler:enable_arc" ] |
} |
+ |
+source_set("dialogs_internal") { |
+ sources = [ |
+ "dialog_presenter.h", |
+ "dialog_presenter.mm", |
+ "java_script_dialog_presenter_impl.h", |
+ "java_script_dialog_presenter_impl.mm", |
+ "nsurl_protection_space_util.h", |
+ "nsurl_protection_space_util.mm", |
+ ] |
+ deps = [ |
+ "//base", |
+ "//components/strings", |
+ "//components/url_formatter", |
+ "//ios/chrome/app/strings", |
+ "//ios/chrome/browser/ui", |
+ "//ios/chrome/browser/ui/alert_coordinator", |
+ "//ios/chrome/browser/ui/dialogs", |
+ "//ios/web", |
+ "//ui/base", |
+ "//url", |
+ ] |
+ libs = [ "UIKit.framework" ] |
+} |
+ |
+source_set("unit_tests_internal") { |
+ testonly = true |
+ sources = [ |
+ "dialog_presenter_unittest.mm", |
+ "nsurl_protection_space_util_unittest.mm", |
+ ] |
+ deps = [ |
+ ":dialogs_internal", |
+ "//base", |
+ "//components/strings", |
+ "//ios/chrome/app/strings", |
+ "//ios/chrome/browser/ui/alert_coordinator", |
+ "//ios/web:test_support", |
+ "//ios/web:web", |
+ "//testing/gtest", |
+ "//ui/base", |
+ "//url", |
+ ] |
+} |
+ |
+source_set("eg_tests") { |
+ configs += [ "//build/config/compiler:enable_arc" ] |
+ testonly = true |
+ sources = [ |
+ "javascript_dialog_egtest.mm", |
+ ] |
+ deps = [ |
+ "//base", |
+ "//components/strings", |
+ "//ios/chrome/app/strings", |
+ "//ios/chrome/browser/ui", |
+ "//ios/chrome/browser/ui/dialogs:dialogs_internal", |
+ "//ios/chrome/browser/ui/tools_menu", |
+ "//ios/chrome/test/app:test_support", |
+ "//ios/chrome/test/earl_grey:test_support", |
+ "//ios/testing:ios_test_support", |
+ "//ios/testing/earl_grey:earl_grey_support", |
+ "//ios/third_party/earl_grey", |
+ "//ios/web", |
+ "//ios/web:test_support", |
+ "//ui/base", |
+ "//url", |
+ ] |
+ libs = [ |
+ "UIKit.framework", |
+ "XCTest.framework", |
+ ] |
+} |