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

Unified Diff: pdf/chunk_stream_unittest.cc

Issue 2453323002: Add pdf_unittests target. (Closed)
Patch Set: 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 | « pdf/BUILD.gn ('k') | pdf/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/chunk_stream_unittest.cc
diff --git a/components/cronet/ios/test/cronet_test_runner.mm b/pdf/chunk_stream_unittest.cc
similarity index 50%
copy from components/cronet/ios/test/cronet_test_runner.mm
copy to pdf/chunk_stream_unittest.cc
index 2272531cdc0df3512b7f74022ce41886aa4ad96f..af7685022f1986204676200243cacd1bee3f0cdb 100644
--- a/components/cronet/ios/test/cronet_test_runner.mm
+++ b/pdf/chunk_stream_unittest.cc
@@ -2,10 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "pdf/chunk_stream.h"
+
#include "testing/gtest/include/gtest/gtest.h"
-#include "testing/gtest_mac.h"
-int main(int argc, char* argv[]) {
- ::testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
+namespace chrome_pdf {
+
+TEST(ChunkStreamTest, Simple) {
+ ChunkStream stream;
+ stream.Preallocate(1000);
+ EXPECT_FALSE(stream.IsRangeAvailable(100, 500));
}
+
+} // namespace chrome_pdf
« no previous file with comments | « pdf/BUILD.gn ('k') | pdf/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698