Index: components/ntp_snippets/BUILD.gn |
diff --git a/components/ntp_snippets/BUILD.gn b/components/ntp_snippets/BUILD.gn |
index 80eeea0d304924812df11ff07e8cb123fe4fcc45..5102720c65f573e0c6f12f1c1ca3e26ac96b8556 100644 |
--- a/components/ntp_snippets/BUILD.gn |
+++ b/components/ntp_snippets/BUILD.gn |
@@ -116,8 +116,6 @@ source_set("unit_tests") { |
"bookmarks/bookmark_last_visit_utils_unittest.cc", |
"category_factory_unittest.cc", |
"content_suggestions_service_unittest.cc", |
- "mock_content_suggestions_provider_observer.cc", |
- "mock_content_suggestions_provider_observer.h", |
"offline_pages/recent_tab_suggestions_provider_unittest.cc", |
"physical_web_pages/physical_web_page_suggestions_provider_unittest.cc", |
"remote/ntp_snippet_unittest.cc", |
@@ -133,6 +131,7 @@ source_set("unit_tests") { |
deps = [ |
":ntp_snippets", |
+ ":test_support", |
"//base", |
"//base/test:test_support", |
"//components/bookmarks/browser", |
@@ -156,3 +155,21 @@ source_set("unit_tests") { |
"//ui/gfx:test_support", |
] |
} |
+ |
+source_set("test_support") { |
+ testonly = true |
+ sources = [ |
+ "mock_content_suggestions_provider_observer.cc", |
+ "mock_content_suggestions_provider_observer.h", |
+ "offline_pages/offline_pages_test_utils.cc", |
+ "offline_pages/offline_pages_test_utils.h", |
+ ] |
+ |
+ deps = [ |
+ ":ntp_snippets", |
+ "//base", |
+ "//components/offline_pages", |
+ "//components/offline_pages:test_support", |
+ "//testing/gmock", |
+ ] |
+} |