Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: xfa/fxfa/app/xfa_textlayout_unittest.cpp

Issue 1996623002: Remove CFX_DSPATemplate usage in CXFA_TextParser (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
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 "xfa/fxfa/app/xfa_textlayout.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 class CXFA_TestTextParser : public CXFA_TextParser {
10 public:
11 CXFA_TestTextParser() : CXFA_TextParser() {}
12
13 private:
14 // Add test cases as friends to access protected member functions.
15 FRIEND_TEST(CXFA_TextParser, TagValidate);
16 };
17
18 TEST(CXFA_TextParser, TagValidate) {
19 CXFA_TestTextParser parser;
20 EXPECT_TRUE(parser.TagValidate(L"br"));
Tom Sepez 2016/05/19 16:37:10 Need not hit every one, I'd like to see an ALL CAP
dsinclair 2016/05/19 17:50:47 Done.
21 EXPECT_TRUE(parser.TagValidate(L"Br"));
22 EXPECT_TRUE(parser.TagValidate(L"a"));
23 EXPECT_TRUE(parser.TagValidate(L"b"));
24 EXPECT_TRUE(parser.TagValidate(L"i"));
25 EXPECT_TRUE(parser.TagValidate(L"p"));
26 EXPECT_TRUE(parser.TagValidate(L"li"));
27 EXPECT_TRUE(parser.TagValidate(L"ol"));
28 EXPECT_TRUE(parser.TagValidate(L"ul"));
29 EXPECT_TRUE(parser.TagValidate(L"sub"));
30 EXPECT_TRUE(parser.TagValidate(L"sup"));
31 EXPECT_TRUE(parser.TagValidate(L"span"));
32 EXPECT_TRUE(parser.TagValidate(L"body"));
33 EXPECT_TRUE(parser.TagValidate(L"html"));
34
35 EXPECT_FALSE(parser.TagValidate(L""));
36 EXPECT_FALSE(parser.TagValidate(L"tml"));
37 }
OLDNEW
« xfa/fxfa/app/xfa_textlayout.cpp ('K') | « xfa/fxfa/app/xfa_textlayout.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698