summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_textlayout_unittest.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-01-10 16:37:32 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-01-10 21:52:30 +0000
commit1f5d4988dcdac125e3e822d37c9086a5e4a3e224 (patch)
tree41fe47f62e1a76117022ed3774040608f1f00c7b /xfa/fxfa/app/xfa_textlayout_unittest.cpp
parent0e6438e40a95702edb8327286c8253aa269c9826 (diff)
downloadpdfium-1f5d4988dcdac125e3e822d37c9086a5e4a3e224.tar.xz
Split xfa_textlayout apart.
This CL splits the xfa_texlayout.{cpp|h} files into individual class files. Minor reformatting was done in the new clasess. Change-Id: Id79ffcb8dca3fcf287a2e6dec78fd2b1f990a542 Reviewed-on: https://pdfium-review.googlesource.com/2162 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/app/xfa_textlayout_unittest.cpp')
-rw-r--r--xfa/fxfa/app/xfa_textlayout_unittest.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/xfa/fxfa/app/xfa_textlayout_unittest.cpp b/xfa/fxfa/app/xfa_textlayout_unittest.cpp
deleted file mode 100644
index 7354631dbb..0000000000
--- a/xfa/fxfa/app/xfa_textlayout_unittest.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "xfa/fxfa/app/xfa_textlayout.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-class CXFA_TestTextParser : public CXFA_TextParser {
- public:
- CXFA_TestTextParser() : CXFA_TextParser() {}
-
- private:
- // Add test cases as friends to access protected member functions.
- FRIEND_TEST(CXFA_TextParser, TagValidate);
-};
-
-TEST(CXFA_TextParser, TagValidate) {
- CXFA_TestTextParser parser;
- EXPECT_TRUE(parser.TagValidate(L"br"));
- EXPECT_TRUE(parser.TagValidate(L"Br"));
- EXPECT_TRUE(parser.TagValidate(L"BR"));
- EXPECT_TRUE(parser.TagValidate(L"a"));
- EXPECT_TRUE(parser.TagValidate(L"b"));
- EXPECT_TRUE(parser.TagValidate(L"i"));
- EXPECT_TRUE(parser.TagValidate(L"p"));
- EXPECT_TRUE(parser.TagValidate(L"li"));
- EXPECT_TRUE(parser.TagValidate(L"ol"));
- EXPECT_TRUE(parser.TagValidate(L"ul"));
- EXPECT_TRUE(parser.TagValidate(L"sub"));
- EXPECT_TRUE(parser.TagValidate(L"sup"));
- EXPECT_TRUE(parser.TagValidate(L"span"));
- EXPECT_TRUE(parser.TagValidate(L"body"));
- EXPECT_TRUE(parser.TagValidate(L"html"));
-
- EXPECT_FALSE(parser.TagValidate(L""));
- EXPECT_FALSE(parser.TagValidate(L"tml"));
- EXPECT_FALSE(parser.TagValidate(L"xhtml"));
- EXPECT_FALSE(parser.TagValidate(L"htmlx"));
-}