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", |
+ ] |
+} |