summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl/cpwl_edit_embeddertest.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-04 19:29:30 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-04 19:29:30 +0000
commitd8ac668fad0211b5d8055866f835d38315d5dabb (patch)
tree7e571c9f7418623015b094c3fdee4965aa079885 /fpdfsdk/pwl/cpwl_edit_embeddertest.cpp
parent7c40157c9d8d72b91dcde3e79f2a083e4319e2eb (diff)
downloadpdfium-d8ac668fad0211b5d8055866f835d38315d5dabb.tar.xz
Remove CPWL_Wnd::GetClassName() and overrides.
It's only used in two tests, and there it is not essential, so save some strings and vtable space. Change-Id: If8c68e5e2580dbe588bccb942f9008efb66fe490 Reviewed-on: https://pdfium-review.googlesource.com/c/43472 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl/cpwl_edit_embeddertest.cpp')
-rw-r--r--fpdfsdk/pwl/cpwl_edit_embeddertest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/fpdfsdk/pwl/cpwl_edit_embeddertest.cpp b/fpdfsdk/pwl/cpwl_edit_embeddertest.cpp
index 3edbf7580a..d7510231f7 100644
--- a/fpdfsdk/pwl/cpwl_edit_embeddertest.cpp
+++ b/fpdfsdk/pwl/cpwl_edit_embeddertest.cpp
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "fpdfsdk/pwl/cpwl_edit.h"
+
#include "fpdfsdk/cpdfsdk_annot.h"
#include "fpdfsdk/cpdfsdk_annotiterator.h"
#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fpdfsdk/formfiller/cffl_formfiller.h"
#include "fpdfsdk/formfiller/cffl_interactiveformfiller.h"
-#include "fpdfsdk/pwl/cpwl_wnd.h"
#include "testing/embedder_test.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -64,8 +65,6 @@ class CPWLEditEmbeddertest : public EmbedderTest {
CPWL_Wnd* pWindow =
m_pFormFiller->GetPDFWindow(m_pFormFillEnv->GetPageView(0), false);
ASSERT_TRUE(pWindow);
- ASSERT_EQ(PWL_CLASSNAME_EDIT, pWindow->GetClassName());
-
m_pEdit = static_cast<CPWL_Edit*>(pWindow);
}