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
cfx_xmldocument_unittest.cpp
Go to the documentation of this file.
1
// Copyright 2018 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/fxcrt/xml/cfx_xmldocument.h"
6
#
include
"core/fxcrt/xml/cfx_xmlelement.h"
7
#
include
"core/fxcrt/xml/cfx_xmlinstruction.h"
8
#
include
"testing/gtest/include/gtest/gtest.h"
9
10
TEST
(
CFX_XMLDocumentTest
,
Root
) {
11
CFX_XMLDocument
doc;
12
EXPECT_TRUE(doc
.
GetRoot
(
)
!=
nullptr
);
13
}
14
15
TEST
(
CFX_XMLDocumentTest
,
CreateNode
) {
16
CFX_XMLDocument
doc;
17
auto
* node = doc.CreateNode<CFX_XMLElement>(L"elem");
18
19
ASSERT_EQ(
CFX_XMLNode
::
Type
::
kElement
, node->GetType());
20
EXPECT_EQ(L"elem", node->GetName());
21
}
CFX_XMLDocument
Definition
cfx_xmldocument.h:17
CFX_XMLDocument::GetRoot
CFX_XMLElement * GetRoot() const
Definition
cfx_xmldocument.h:22
CFX_XMLNode
Definition
cfx_xmlnode.h:16
CFX_XMLNode::Type
Type
Definition
cfx_xmlnode.h:18
CFX_XMLNode::Type::kElement
@ kElement
TEST
TEST(FXCRYPT, MD5GenerateEmtpyData)
Definition
fx_crypt_unittest.cpp:45
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcrt
xml
cfx_xmldocument_unittest.cpp
Generated on Wed Nov 13 2024 00:59:08 for Qt by
1.12.0