• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef TESTING_TEST_LOADER_H_
6 #define TESTING_TEST_LOADER_H_
7 
8 #include "third_party/base/span.h"
9 
10 class TestLoader {
11  public:
12   explicit TestLoader(pdfium::span<const char> span);
13 
14   static int GetBlock(void* param,
15                       unsigned long pos,
16                       unsigned char* pBuf,
17                       unsigned long size);
18 
19  private:
20   const pdfium::span<const char> m_Span;
21 };
22 
23 #endif  // TESTING_TEST_LOADER_H_
24