diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-21 12:27:45 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-21 17:49:27 +0000 |
commit | a798e2f487e388aafc0beeda46aca3fb0358c189 (patch) | |
tree | 4b2c4d68081b2fb90e42af70d106a2bd10e743af /xfa/fde/cfde_txtedtbuf_unittest.cpp | |
parent | 3b20ec77c760ef11dacf00a3e654d06cadf20c27 (diff) | |
download | pdfium-a798e2f487e388aafc0beeda46aca3fb0358c189.tar.xz |
Cleanup CFDE_TxtEdtBuf and simplify some logic.
This CL cleans up nits in CFDE_TxtEdtBuf and simplifies some of the
methods.
Change-Id: I2092da8e27281a577752fc331fec0612a349dfd6
Reviewed-on: https://pdfium-review.googlesource.com/11335
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtbuf_unittest.cpp')
-rw-r--r-- | xfa/fde/cfde_txtedtbuf_unittest.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/xfa/fde/cfde_txtedtbuf_unittest.cpp b/xfa/fde/cfde_txtedtbuf_unittest.cpp index 74bc4f95b7..8c112f19e2 100644 --- a/xfa/fde/cfde_txtedtbuf_unittest.cpp +++ b/xfa/fde/cfde_txtedtbuf_unittest.cpp @@ -128,20 +128,9 @@ TEST_F(CFDE_TxtEdtBufTest, DeleteAllText) { EXPECT_EQ(0, res.GetLength()); } -TEST_F(CFDE_TxtEdtBufTest, ClearWithRelease) { +TEST_F(CFDE_TxtEdtBufTest, Clear) { buf_->SetText(L"Hello World"); - buf_->Clear(true); - EXPECT_EQ(0UL, ChunkCount()); - EXPECT_EQ(0, buf_->GetTextLength()); - - CFX_WideString res = buf_->GetText(); - EXPECT_EQ(L"", res); - EXPECT_EQ(0, res.GetLength()); -} - -TEST_F(CFDE_TxtEdtBufTest, ClearWithoutRelease) { - buf_->SetText(L"Hello World"); - buf_->Clear(false); + buf_->Clear(); EXPECT_EQ(3UL, ChunkCount()); EXPECT_EQ(0, buf_->GetTextLength()); |