Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: fpdfsdk/src/fpdfview_embeddertest.cpp

Issue 1138143003: Fix leaks in the embedder tests themselves. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: one more file Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/fpdftext_embeddertest.cpp ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 PDFium Authors. All rights reserved. 1 // Copyright 2015 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits> 5 #include <limits>
6 #include <string> 6 #include <string>
7 7
8 #include "../../public/fpdfview.h" 8 #include "../../public/fpdfview.h"
9 #include "../../testing/embedder_test.h" 9 #include "../../testing/embedder_test.h"
10 #include "fpdfview_c_api_test.h" 10 #include "fpdfview_c_api_test.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 TEST_F(FPDFViewEmbeddertest, Crasher_451830) { 189 TEST_F(FPDFViewEmbeddertest, Crasher_451830) {
190 EXPECT_TRUE(OpenDocument("testing/resources/bug_451830.pdf")); 190 EXPECT_TRUE(OpenDocument("testing/resources/bug_451830.pdf"));
191 } 191 }
192 192
193 TEST_F(FPDFViewEmbeddertest, Crasher_452455) { 193 TEST_F(FPDFViewEmbeddertest, Crasher_452455) {
194 EXPECT_TRUE(OpenDocument("testing/resources/bug_452455.pdf")); 194 EXPECT_TRUE(OpenDocument("testing/resources/bug_452455.pdf"));
195 FPDF_PAGE page = LoadPage(0); 195 FPDF_PAGE page = LoadPage(0);
196 EXPECT_NE(nullptr, page); 196 EXPECT_NE(nullptr, page);
197 UnloadPage(page);
197 } 198 }
198 199
199 TEST_F(FPDFViewEmbeddertest, Crasher3) { 200 TEST_F(FPDFViewEmbeddertest, Crasher3) {
200 EXPECT_TRUE(OpenDocument("testing/resources/bug_454695.pdf")); 201 EXPECT_TRUE(OpenDocument("testing/resources/bug_454695.pdf"));
201 } 202 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fpdftext_embeddertest.cpp ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698