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

Side by Side Diff: pdf/chunk_stream_unittest.cc

Issue 2453323002: Add pdf_unittests target. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « pdf/BUILD.gn ('k') | pdf/run_all_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« 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