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

Unified Diff: extensions/browser/BUILD.gn

Issue 2693373003: PreloadCheck class for extension pre-install checks (Closed)
Patch Set: don't break enable_extensions=false Created 3 years, 9 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 | « chrome/test/BUILD.gn ('k') | extensions/browser/policy_check.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/BUILD.gn
diff --git a/extensions/browser/BUILD.gn b/extensions/browser/BUILD.gn
index b037388bb071771840341bdc71c67eda2dff6ce4..e9eae2a7ba4e4cd06a639a52a89c0105b7609ad5 100644
--- a/extensions/browser/BUILD.gn
+++ b/extensions/browser/BUILD.gn
@@ -224,8 +224,12 @@ source_set("browser_sources") {
"notification_types.h",
"null_app_sorting.cc",
"null_app_sorting.h",
+ "policy_check.cc",
+ "policy_check.h",
"pref_names.cc",
"pref_names.h",
+ "preload_check.cc",
+ "preload_check.h",
"process_manager.cc",
"process_manager.h",
"process_manager_delegate.h",
@@ -362,6 +366,21 @@ source_set("browser_tests") {
}
}
+source_set("test_support") {
+ testonly = true
+ sources = [
+ "preload_check_test_util.cc",
+ "preload_check_test_util.h",
+ ]
+
+ deps = [
+ "//base",
+ "//extensions/browser",
+ "//extensions/common",
+ "//testing/gtest",
+ ]
+}
+
source_set("unit_tests") {
testonly = true
sources = [
@@ -424,6 +443,7 @@ source_set("unit_tests") {
"load_monitoring_extension_host_queue_unittest.cc",
"management_policy_unittest.cc",
"mojo/keep_alive_impl_unittest.cc",
+ "policy_check_unittest.cc",
"process_manager_unittest.cc",
"process_map_unittest.cc",
"quota_service_unittest.cc",
@@ -443,6 +463,7 @@ source_set("unit_tests") {
deps = [
":browser",
+ ":test_support",
"//base",
"//base/test:test_support",
"//components/cast_certificate",
« no previous file with comments | « chrome/test/BUILD.gn ('k') | extensions/browser/policy_check.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698