[iOS blink] Enable the session proto db unittests in //components
This CL enables the unit tests related to the session proto db
feature in //components.
Bug: 1427365
Change-Id: I44968d11da7fc627b524f4a335f4430e6b7bef75
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4871536
Reviewed-by: Ian Vollick <vollick@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Reviewed-by: David Maunder <davidjm@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1201345}
diff --git a/components/BUILD.gn b/components/BUILD.gn
index df03872..8d6f027 100644
--- a/components/BUILD.gn
+++ b/components/BUILD.gn
@@ -463,6 +463,7 @@
"//components/reporting/resources:unit_tests",
"//components/services/heap_profiling:unit_tests",
"//components/services/storage:tests",
+ "//components/session_proto_db:unit_tests",
"//components/subresource_filter/content/common:unit_tests",
"//components/subresource_filter/content/renderer:unit_tests",
"//components/tracing:unit_tests",
@@ -533,7 +534,6 @@
"//components/permissions/prediction_service:unit_tests",
"//components/privacy_sandbox:unit_tests",
"//components/privacy_sandbox/privacy_sandbox_attestations:unit_tests",
- "//components/session_proto_db:unit_tests",
# TODO(chromium: 1169835) components / reporting / storage / resources: unit_tests
# can't be run on iOS until they are updated.
diff --git a/components/session_proto_db/BUILD.gn b/components/session_proto_db/BUILD.gn
index dd6bf45..b20836a 100644
--- a/components/session_proto_db/BUILD.gn
+++ b/components/session_proto_db/BUILD.gn
@@ -26,8 +26,9 @@
]
}
-# TODO(crbug.com/1399914) Make tests more general and run on iOS trybot.
-if (!is_ios) {
+# TODO(crbug.com/1399914) Make tests more general and run on iOS non-blink
+# trybot.
+if (use_blink) {
source_set("unit_tests") {
testonly = true
sources = [ "session_proto_db_unittest.cc" ]