summaryrefslogtreecommitdiff
path: root/testing/embedder_test.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-09-07 09:02:48 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-07 09:02:48 -0700
commitcb92dc762d5c35232af9f6051b04e9716247d4ae (patch)
tree2968688106a25b0ef244e021ad569284f07b6296 /testing/embedder_test.h
parentce04a458828b45035dab46c13e14a1f0ae67a2b7 (diff)
downloadpdfium-cb92dc762d5c35232af9f6051b04e9716247d4ae.tar.xz
Cleanup page when unloading in embedder tests
When unloading a page in the embedder tests we need to cleanup the internal page map so if we load the page a second time we don't get a previously unloaded page. Review-Url: https://codereview.chromium.org/2322523002
Diffstat (limited to 'testing/embedder_test.h')
-rw-r--r--testing/embedder_test.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/embedder_test.h b/testing/embedder_test.h
index 153ca6e5f3..dc4ca0dc08 100644
--- a/testing/embedder_test.h
+++ b/testing/embedder_test.h
@@ -124,6 +124,7 @@ class EmbedderTest : public ::testing::Test,
size_t file_length_;
std::unique_ptr<char, pdfium::FreeDeleter> file_contents_;
std::map<int, FPDF_PAGE> page_map_;
+ std::map<FPDF_PAGE, int> page_reverse_map_;
private:
static void UnsupportedHandlerTrampoline(UNSUPPORT_INFO*, int type);