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

Unified Diff: components/offline_pages/core/BUILD.gn

Issue 2359933007: [Offline pages] Introduces TaskQueue to serialize tasks that asynchronously access SQLStore (Closed)
Patch Set: Addressing feedback from Dmitry Created 4 years, 3 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 | « components/BUILD.gn ('k') | components/offline_pages/core/task.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/core/BUILD.gn
diff --git a/components/offline_pages/request_header/BUILD.gn b/components/offline_pages/core/BUILD.gn
similarity index 52%
copy from components/offline_pages/request_header/BUILD.gn
copy to components/offline_pages/core/BUILD.gn
index 711623cc3481ce69aee7d0bf41b1812ca406ff85..d84ddee40826ebe9c37fdf636b8ab11c77cd8f10 100644
--- a/components/offline_pages/request_header/BUILD.gn
+++ b/components/offline_pages/core/BUILD.gn
@@ -6,10 +6,12 @@ if (is_android) {
import("//build/config/android/rules.gni")
}
-static_library("request_header") {
+static_library("core") {
sources = [
- "offline_page_header.cc",
- "offline_page_header.h",
+ "task.cc",
+ "task.h",
+ "task_queue.cc",
+ "task_queue.h",
]
deps = [
@@ -17,16 +19,31 @@ static_library("request_header") {
]
}
+static_library("test_support") {
+ testonly = true
+ sources = [
+ "test_task.cc",
+ "test_task.h",
+ ]
+
+ deps = [
+ ":core",
+ "//base",
+ ]
+}
+
source_set("unit_tests") {
testonly = true
sources = [
- "offline_page_header_unittest.cc",
+ "task_queue_unittest.cc",
+ "task_unittest.cc",
]
deps = [
- ":request_header",
+ ":core",
+ ":test_support",
"//base",
"//base/test:test_support",
- "//testing/gtest",
+ "//testing/gtest:gtest",
]
}
« no previous file with comments | « components/BUILD.gn ('k') | components/offline_pages/core/task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698