summaryrefslogtreecommitdiff
path: root/fxjs/cjs_publicmethods_embeddertest.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-07 14:37:55 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-07 14:37:55 +0000
commit15406fb41d7aa5ab685005e51ff3cf54acb9a15e (patch)
tree1342c6fa02cbae568824c7e52db1f9f8e8fab3f3 /fxjs/cjs_publicmethods_embeddertest.cpp
parentef755ea5d5e8fbbd9f6a9d2494960744d8607a46 (diff)
downloadpdfium-15406fb41d7aa5ab685005e51ff3cf54acb9a15e.tar.xz
Mark parts of CJS_EventHandler as private.
Also change Initial() to Initialize(). Change-Id: Ic63ee1cace0012ad570db25447ced752bddd7f86 Reviewed-on: https://pdfium-review.googlesource.com/28150 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjs_publicmethods_embeddertest.cpp')
-rw-r--r--fxjs/cjs_publicmethods_embeddertest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/fxjs/cjs_publicmethods_embeddertest.cpp b/fxjs/cjs_publicmethods_embeddertest.cpp
index 9413aa6a46..38604555ae 100644
--- a/fxjs/cjs_publicmethods_embeddertest.cpp
+++ b/fxjs/cjs_publicmethods_embeddertest.cpp
@@ -224,10 +224,10 @@ TEST_F(CJS_PublicMethodsEmbedderTest, AFNumber_Keystroke) {
WideString change = L"";
handler->m_pValue = &result;
- handler->m_pbRc = &valid;
- handler->m_pWideStrChange = &change;
+ handler->SetRCForTest(&valid);
+ handler->SetStrChangeForTest(&change);
- handler->m_bWillCommit = 0;
+ handler->ResetWillCommitForTest();
handler->SetSelStart(0);
handler->SetSelEnd(0);
@@ -245,6 +245,6 @@ TEST_F(CJS_PublicMethodsEmbedderTest, AFNumber_Keystroke) {
// Keep the *SAN bots happy. One of these is an UnownedPtr, another seems to
// used during destruction. Clear them all to be safe and consistent.
handler->m_pValue = nullptr;
- handler->m_pbRc = nullptr;
- handler->m_pWideStrChange = nullptr;
+ handler->SetRCForTest(nullptr);
+ handler->SetStrChangeForTest(nullptr);
}