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

Unified Diff: ppapi/tests/test_pdf.cc

Issue 1125113002: Remove the unused parts of PPB_PDF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pdf-delete-pdf
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/tests/test_pdf.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_pdf.cc
diff --git a/ppapi/tests/test_pdf.cc b/ppapi/tests/test_pdf.cc
index 7b12785e9802ca4255aa7ae4adae488dd987a401..d33ab595d6658d143badcbba3aaa880c2d7c8434 100644
--- a/ppapi/tests/test_pdf.cc
+++ b/ppapi/tests/test_pdf.cc
@@ -19,7 +19,6 @@ TestPDF::TestPDF(TestingInstance* instance)
void TestPDF::RunTests(const std::string& filter) {
RUN_TEST(GetLocalizedString, filter);
- RUN_TEST(GetResourceImage, filter);
RUN_TEST(GetV8ExternalSnapshotData, filter);
}
@@ -32,20 +31,6 @@ std::string TestPDF::TestGetLocalizedString() {
PASS();
}
-std::string TestPDF::TestGetResourceImage() {
- pp::ImageData data =
- pp::PDF::GetResourceImage(instance_, PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN);
- ASSERT_EQ(43, data.size().width());
- ASSERT_EQ(42, data.size().height());
- for (int i = 0; i < data.size().width(); ++i) {
- for (int j = 0; j < data.size().height(); ++j) {
- pp::Point point(i, j);
- ASSERT_NE(0, *data.GetAddr32(point));
- }
- }
- PASS();
-}
-
std::string TestPDF::TestGetV8ExternalSnapshotData() {
const char* natives_data;
const char* snapshot_data;
« no previous file with comments | « ppapi/tests/test_pdf.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698