OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include "pdf/chunk_stream.h" |
| 6 |
5 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
6 #include "testing/gtest_mac.h" | |
7 | 8 |
8 int main(int argc, char* argv[]) { | 9 namespace chrome_pdf { |
9 ::testing::InitGoogleTest(&argc, argv); | 10 |
10 return RUN_ALL_TESTS(); | 11 TEST(ChunkStreamTest, Simple) { |
| 12 ChunkStream stream; |
| 13 stream.Preallocate(1000); |
| 14 EXPECT_FALSE(stream.IsRangeAvailable(100, 500)); |
11 } | 15 } |
| 16 |
| 17 } // namespace chrome_pdf |
OLD | NEW |