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 |