0
Files
src/pdf/chunk_stream_unittest.cc
dsinclair adf55f3f29 Revert "reland of Improve linearized pdf load/show time."
This Cl reverts the linearized loading Cl. In order to do so it also reverst:

 * "Fix crash in Print Preview on rotating the preview in 'Clockwise' direction.."
 * "[PDF Plugin] Increase read buffer size"

The reason for revert is due to breaking loading of dynamic XFA forms.

Review-Url: https://codereview.chromium.org/2558573002
Cr-Commit-Position: refs/heads/master@{#436938}
2016-12-07 14:03:45 +00:00

18 lines
432 B
C++

// Copyright 2016 The Chromium Authors. All rights reserved.
// 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"
namespace chrome_pdf {
TEST(ChunkStreamTest, Simple) {
ChunkStream stream;
stream.Preallocate(1000);
EXPECT_FALSE(stream.IsRangeAvailable(100, 500));
}
} // namespace chrome_pdf