#include "core/fpdfdoc/cpdf_annotlist.h"
#include <stdint.h>
#include <initializer_list>
#include <memory>
#include "constants/annotation_common.h"
#include "core/fpdfapi/page/cpdf_page.h"
#include "core/fpdfapi/page/test_with_page_module.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_name.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fpdfapi/parser/cpdf_test_document.h"
#include "core/fpdfdoc/cpdf_annot.h"
#include "core/fxcrt/bytestring.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/retain_ptr.h"
#include "core/fxcrt/widestring.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
class CPDFAnnotListTest : public TestWithPageModule { … };
ByteString MakeByteString(std::initializer_list<uint8_t> bytes) { … }
ByteString GetRawContents(const CPDF_Annot* annotation) { … }
WideString GetDecodedContents(const CPDF_Annot* annotation) { … }
}
TEST_F(CPDFAnnotListTest, CreatePopupAnnotFromPdfEncoded) { … }
TEST_F(CPDFAnnotListTest, CreatePopupAnnotFromUnicode) { … }
TEST_F(CPDFAnnotListTest, CreatePopupAnnotFromEmptyPdfEncoded) { … }
TEST_F(CPDFAnnotListTest, CreatePopupAnnotFromEmptyUnicode) { … }
TEST_F(CPDFAnnotListTest, CreatePopupAnnotFromEmptyUnicodedWithEscape) { … }