diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-03-07 16:03:17 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-08 13:44:54 +0000 |
commit | f7fccbd0da7ac700e1342e18b2bd1fa82438f3fc (patch) | |
tree | ddb1da15fd6935ead6a825048bacd6f647c31657 /xfa/fgas/layout/fgas_rtfbreak_unittest.cpp | |
parent | 7b8e8c0cdd1bdc67a61e167883c72ad672529b84 (diff) | |
download | pdfium-f7fccbd0da7ac700e1342e18b2bd1fa82438f3fc.tar.xz |
Remove CFX_RTFPieceArray and use std::vector
This CL removes the CFX_RTFPieceArray typedef and updates the code to
use a std::vector.
Change-Id: I885038d432e700830958e37b8c03c5beceff012f
Reviewed-on: https://pdfium-review.googlesource.com/2936
Reviewed-by: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fgas/layout/fgas_rtfbreak_unittest.cpp')
-rw-r--r-- | xfa/fgas/layout/fgas_rtfbreak_unittest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fgas/layout/fgas_rtfbreak_unittest.cpp b/xfa/fgas/layout/fgas_rtfbreak_unittest.cpp index aba440aac7..bbac9d5806 100644 --- a/xfa/fgas/layout/fgas_rtfbreak_unittest.cpp +++ b/xfa/fgas/layout/fgas_rtfbreak_unittest.cpp @@ -58,7 +58,7 @@ TEST_F(RTFBreakTest, AddChars) { EXPECT_EQ(CFX_RTFBreakType::Paragraph, b->AppendChar(L'\n')); ASSERT_EQ(1, b->CountBreakPieces()); - EXPECT_EQ(str + L"\n", b->GetBreakPiece(0)->GetString()); + EXPECT_EQ(str + L"\n", b->GetBreakPieceUnstable(0)->GetString()); b->ClearBreakPieces(); b->Reset(); @@ -71,7 +71,7 @@ TEST_F(RTFBreakTest, AddChars) { // Force the end of the break at the end of the string. b->EndBreak(CFX_RTFBreakType::Paragraph); ASSERT_EQ(1, b->CountBreakPieces()); - EXPECT_EQ(str, b->GetBreakPiece(0)->GetString()); + EXPECT_EQ(str, b->GetBreakPieceUnstable(0)->GetString()); } TEST_F(RTFBreakTest, ControlCharacters) { @@ -83,5 +83,5 @@ TEST_F(RTFBreakTest, ControlCharacters) { EXPECT_EQ(CFX_RTFBreakType::Paragraph, b->AppendChar(L'\n')); ASSERT_EQ(1, b->CountBreakPieces()); - EXPECT_EQ(L"\v", b->GetBreakPiece(0)->GetString()); + EXPECT_EQ(L"\v", b->GetBreakPieceUnstable(0)->GetString()); } |