• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The PDFium Authors
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 <stdint.h>
9 
10 #include "core/fxcrt/raw_span.h"
11 #include "core/fxcrt/span.h"
12 
13 class TestLoader {
14  public:
15   explicit TestLoader(pdfium::span<const uint8_t> span);
16 
17   static int GetBlock(void* param,
18                       unsigned long pos,
19                       unsigned char* pBuf,
20                       unsigned long size);
21 
22  private:
23   const pdfium::raw_span<const uint8_t> m_Span;
24 };
25 
26 #endif  // TESTING_TEST_LOADER_H_
27