Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_streamcontentparser_unittest.cpp
Go to the documentation of this file.
1// Copyright 2016 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#include "core/fpdfapi/page/cpdf_streamcontentparser.h"
6#include "testing/gtest/include/gtest/gtest.h"
7
9 EXPECT_EQ(ByteStringView("BitsPerComponent"),
11 ByteStringView("BPC")));
12 EXPECT_EQ(ByteStringView("Width"),
14 ByteStringView("W")));
15 EXPECT_EQ(ByteStringView(""),
17 ByteStringView("")));
18 EXPECT_EQ(ByteStringView(""),
20 ByteStringView("NoInList")));
21 // Prefix should not match.
22 EXPECT_EQ(ByteStringView(""),
24 ByteStringView("WW")));
25}
26
28 EXPECT_EQ(ByteStringView("DeviceGray"),
30 ByteStringView("G")));
31 EXPECT_EQ(ByteStringView("DCTDecode"),
33 ByteStringView("DCT")));
34 EXPECT_EQ(ByteStringView(""),
36 ByteStringView("")));
37 EXPECT_EQ(ByteStringView(""),
39 ByteStringView("NoInList")));
40 // Prefix should not match.
41 EXPECT_EQ(ByteStringView(""),
43 ByteStringView("II")));
44}
static ByteStringView FindValueAbbreviationForTesting(ByteStringView abbr)
static ByteStringView FindKeyAbbreviationForTesting(ByteStringView abbr)
TEST(FXCRYPT, MD5GenerateEmtpyData)