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
12 EXPECT_TRUE(doc.GetRoot() != nullptr);
13}
14
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_XMLElement * GetRoot() const
TEST(FXCRYPT, MD5GenerateEmtpyData)