Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: ios/chrome/search_widget_extension/BUILD.gn

Issue 2810403003: Add unit test and showcase support for search widget. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/search_widget_extension/search_widget_view_controller_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/search_widget_extension/BUILD.gn
diff --git a/ios/chrome/search_widget_extension/BUILD.gn b/ios/chrome/search_widget_extension/BUILD.gn
index 80a585f974b10b5e85b0f0199217989e69e6814f..7432edf5ac626a4c0f0fec6a18d67c09a5640aab 100644
--- a/ios/chrome/search_widget_extension/BUILD.gn
+++ b/ios/chrome/search_widget_extension/BUILD.gn
@@ -20,14 +20,8 @@ compile_plist("entitlements") {
}
ios_appex_bundle("search_widget_extension") {
- sources = [
- "search_widget_view.h",
- "search_widget_view.mm",
- "search_widget_view_controller.h",
- "search_widget_view_controller.mm",
- ]
-
deps = [
+ ":search_widget",
"//base",
"//components/open_from_clipboard:open_from_clipboard_impl",
"//components/prefs",
@@ -60,3 +54,25 @@ ios_appex_bundle("search_widget_extension") {
entitlements_target = ":entitlements"
info_plist_target = ":tweak_info_plist"
}
+
+source_set("search_widget") {
+ sources = [
+ "search_widget_view.h",
lpromero 2017/04/13 17:26:08 You also need to move to this source_set the deps
lody 2017/04/14 13:56:09 Done.
+ "search_widget_view.mm",
+ "search_widget_view_controller.h",
+ "search_widget_view_controller.mm",
+ ]
+ configs += [ "//build/config/compiler:enable_arc" ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "search_widget_view_controller_unittest.mm",
+ ]
+ deps = [
+ ":search_widget",
+ "//testing/gtest",
+ ]
+ configs += [ "//build/config/compiler:enable_arc" ]
+}
« no previous file with comments | « no previous file | ios/chrome/search_widget_extension/search_widget_view_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698