Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
path_service.h
Go to the documentation of this file.
1
// Copyright 2015 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_UTILS_PATH_SERVICE_H_
6
#
define
TESTING_UTILS_PATH_SERVICE_H_
7
8
#
include
<
string
>
9
10
#
ifdef
_WIN32
11
#
define
PATH_SEPARATOR
'\\'
12
#
else
13
#
define
PATH_SEPARATOR
'/'
14
#
endif
15
16
// Get the various file directory and path information.
17
class
PathService
{
18
public
:
19
// Return true when the path is a directory that exists.
20
static
bool
DirectoryExists
(
const
std
::string& path);
21
22
// Return true when the path ends with a path separator.
23
static
bool
EndsWithSeparator
(
const
std
::string& path);
24
25
// Retrieve the directory where executables run from.
26
static
bool
GetExecutableDir
(
std
::string* path);
27
28
// Retrieve the root directory of the source tree.
29
// Assume executables always run from out/<build_dir_name>/, so the source
30
// directory is two levels above the executable directory.
31
static
bool
GetSourceDir
(
std
::string* path);
32
33
// Retrieve the test data directory where test files are stored.
34
// Try <source_dir>/testing/resources/ first. If it does not exist, try
35
// checking <source_dir>/third_party/pdfium/testing/resources/.
36
static
bool
GetTestDataDir
(
std
::string* path);
37
38
// Get the full path for a test file under the test data directory.
39
// Returns an empty string on failure.
40
static
std
::string
GetTestFilePath
(
const
std
::string& file_name);
41
42
// Get the full path for a file under the third-party directory.
43
static
bool
GetThirdPartyFilePath
(
const
std
::string& file_name,
44
std
::string* path);
45
};
46
#
endif
// TESTING_UTILS_PATH_SERVICE_H_
CFX_DIBBase
Definition
cfx_dibbase.h:35
CPDF_ColorSpace
Definition
cpdf_colorspace.h:53
CPDF_ColorSpace::Family
Family
Definition
cpdf_colorspace.h:55
CPDF_ColorSpace::Family::kICCBased
@ kICCBased
Definition
cpdf_colorspace.h:63
CPDF_Dictionary::DictMap
std::map< ByteString, RetainPtr< CPDF_Object >, std::less<> > DictMap
Definition
cpdf_dictionary.h:31
CPDF_DocRenderData
Definition
cpdf_docrenderdata.h:32
CPDF_DocRenderData::operator=
CPDF_DocRenderData & operator=(const CPDF_DocRenderData &)=delete
CPDF_DocRenderData::CreateTransferFunc
RetainPtr< CPDF_TransferFunc > CreateTransferFunc(RetainPtr< const CPDF_Object > pObj) const
Definition
cpdf_docrenderdata.cpp:79
CPDF_DocRenderData::FromDocument
static CPDF_DocRenderData * FromDocument(const CPDF_Document *pDoc)
Definition
cpdf_docrenderdata.cpp:37
CPDF_DocRenderData::GetTransferFunc
RetainPtr< CPDF_TransferFunc > GetTransferFunc(RetainPtr< const CPDF_Object > obj)
Definition
cpdf_docrenderdata.cpp:58
CPDF_DocRenderData::CPDF_DocRenderData
CPDF_DocRenderData()
CPDF_DocRenderData::~CPDF_DocRenderData
~CPDF_DocRenderData() override
CPDF_DocRenderData::GetCachedType3
RetainPtr< CPDF_Type3Cache > GetCachedType3(CPDF_Type3Font *font)
Definition
cpdf_docrenderdata.cpp:46
CPDF_DocRenderData::CPDF_DocRenderData
CPDF_DocRenderData(const CPDF_DocRenderData &)=delete
CPDF_Document::RenderDataIface
Definition
cpdf_document.h:69
CPDF_Document
Definition
cpdf_document.h:29
CPDF_Font
Definition
cpdf_font.h:37
CPDF_ImageObject::GetImage
RetainPtr< CPDF_Image > GetImage() const
Definition
cpdf_imageobject.cpp:60
CPDF_Object
Definition
cpdf_object.h:50
CPDF_PageImageCache
Definition
cpdf_pageimagecache.h:27
CPDF_PageImageCache::StartGetCachedBitmap
bool StartGetCachedBitmap(RetainPtr< CPDF_Image > pImage, const CPDF_Dictionary *pFormResources, const CPDF_Dictionary *pPageResources, bool bStdCS, CPDF_ColorSpace::Family eFamily, bool bLoadMask, const CFX_Size &max_size_required)
Definition
cpdf_pageimagecache.cpp:165
CPDF_PageImageCache::Continue
bool Continue(PauseIndicatorIface *pPause)
Definition
cpdf_pageimagecache.cpp:201
CPDF_PageModule
Definition
cpdf_pagemodule.h:12
CPDF_PageModule::Destroy
static void Destroy()
Definition
cpdf_pagemodule.cpp:22
CPDF_PageModule::Create
static void Create()
Definition
cpdf_pagemodule.cpp:14
CPDF_PageObject
Definition
cpdf_pageobject.h:27
CPDF_PageObject::AsImage
virtual CPDF_ImageObject * AsImage()
Definition
cpdf_pageobject.cpp:54
CPDF_Parser
Definition
cpdf_parser.h:37
CPDF_Parser::SUCCESS
@ SUCCESS
Definition
cpdf_parser.h:45
IFX_SeekableReadStream
Definition
fx_stream.h:52
IFX_SeekableReadStream::CreateFromFilename
static RetainPtr< IFX_SeekableReadStream > CreateFromFilename(const char *filename)
Definition
fx_stream.cpp:68
PathService
Definition
path_service.h:17
PathService::GetTestDataDir
static bool GetTestDataDir(std::string *path)
Definition
path_service.cpp:123
PathService::GetTestFilePath
static std::string GetTestFilePath(const std::string &file_name)
Definition
path_service.cpp:156
PathService::GetThirdPartyFilePath
static bool GetThirdPartyFilePath(const std::string &file_name, std::string *path)
Definition
path_service.cpp:170
PathService::GetExecutableDir
static bool GetExecutableDir(std::string *path)
Definition
path_service.cpp:64
PathService::GetSourceDir
static bool GetSourceDir(std::string *path)
Definition
path_service.cpp:106
PathService::DirectoryExists
static bool DirectoryExists(const std::string &path)
Definition
path_service.cpp:44
PathService::EndsWithSeparator
static bool EndsWithSeparator(const std::string &path)
Definition
path_service.cpp:59
fxcrt::RetainPtr
Definition
retain_ptr.h:28
pdfium::CFDETextOutLargeBitmapTest
Definition
cfde_textout_unittest.cpp:117
TEST
TEST(FXCRYPT, MD5GenerateEmtpyData)
Definition
fx_crypt_unittest.cpp:50
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtwebengine
src
3rdparty
chromium
third_party
pdfium
testing
utils
path_service.h
Generated on
for Qt by
1.18.0