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

Unified Diff: pdf/BUILD.gn

Issue 2349753003: Improve linearized pdf load/show time. (Closed)
Patch Set: Fix review issues. Created 4 years, 2 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 | pdf/DEPS » ('j') | pdf/chunk_stream.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/BUILD.gn
diff --git a/pdf/BUILD.gn b/pdf/BUILD.gn
index f017ed2ff4468ec5525533e41ebc7bcb0322af48..8e474e0307dca3092c8547e2b1ab4c5cbf855fe3 100644
--- a/pdf/BUILD.gn
+++ b/pdf/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/features.gni")
import("//third_party/pdfium/pdfium.gni")
+import("//testing/test.gni")
Lei Zhang 2016/10/21 09:33:08 nit: alphabetical order
snake 2016/10/21 15:13:14 Done.
assert(enable_pdf)
@@ -17,10 +18,10 @@ static_library("pdf") {
"//ppapi/cpp:objects",
"//ppapi/cpp/private:internal_module",
"//ui/base",
+ "//ui/gfx/range",
]
sources = [
- "chunk_stream.cc",
"chunk_stream.h",
"document_loader.cc",
"document_loader.h",
@@ -37,6 +38,13 @@ static_library("pdf") {
"pdf_engine.h",
"preview_mode_client.cc",
"preview_mode_client.h",
+ "range_set.cc",
+ "range_set.h",
+ "timer.cc",
+ "timer.h",
+ "url_loader_wrapper.h",
+ "url_loader_wrapper_impl.cc",
+ "url_loader_wrapper_impl.h",
]
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
@@ -70,3 +78,27 @@ static_library("pdf") {
defines += [ "PDF_ENABLE_XFA" ]
}
}
+
+test("pdf_unittests") {
+ sources = [
+ "chunk_stream_unittest.cc",
+ "document_loader_unittest.cc",
+ "range_set_unittest.cc",
+ "run_all_unittests.cc",
+ ]
+
+ deps = [
+ ":pdf",
+ "//base",
+ "//base/test:test_support",
+ "//net",
+ "//ppapi/c",
+ "//ppapi/cpp",
+ "//printing",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/pdfium",
+ "//ui/gfx",
Lei Zhang 2016/10/21 09:33:08 only "//ui/gfx/range" is needed?
snake 2016/10/21 15:13:14 Done.
+ "//ui/gfx/geometry",
+ ]
+}
« no previous file with comments | « no previous file | pdf/DEPS » ('j') | pdf/chunk_stream.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698