#include "core/fpdfdoc/cpdf_nametree.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fxcrt/retain_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
void AddNameKeyValue(CPDF_Array* names, const char* key, int value) { … }
void CheckNameKeyValue(const CPDF_Array* names,
int pair_index,
const char* key,
int value) { … }
void AddLimitsArray(CPDF_Dictionary* node,
const char* least,
const char* greatest) { … }
void CheckLimitsArray(const CPDF_Dictionary* node,
const char* least,
const char* greatest) { … }
void FillNameTreeDict(CPDF_Dictionary* pRootDict) { … }
}
TEST(cpdf_nametree, GetUnicodeNameWithBOM) { … }
TEST(cpdf_nametree, GetFromTreeWithLimitsArrayWith4Items) { … }
TEST(cpdf_nametree, AddIntoNames) { … }
TEST(cpdf_nametree, AddIntoEmptyNames) { … }
TEST(cpdf_nametree, AddIntoKids) { … }
TEST(cpdf_nametree, DeleteFromKids) { … }