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

Unified Diff: chrome/browser/ui/pdf/pdf_browsertest_base.cc

Issue 593503003: Support error handling for Surface readbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted code and fixed build issue in test. Created 6 years, 1 month 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
Index: chrome/browser/ui/pdf/pdf_browsertest_base.cc
diff --git a/chrome/browser/ui/pdf/pdf_browsertest_base.cc b/chrome/browser/ui/pdf/pdf_browsertest_base.cc
index 9420537f9a8fe76837d0fb46be9c183f664d858a..52179fb4a95b155e07de65508bea58be76edc9bc 100644
--- a/chrome/browser/ui/pdf/pdf_browsertest_base.cc
+++ b/chrome/browser/ui/pdf/pdf_browsertest_base.cc
@@ -111,10 +111,11 @@ bool PDFBrowserTest::VerifySnapshot(const std::string& expected_filename) {
return !snapshot_different_;
}
-void PDFBrowserTest::CopyFromBackingStoreCallback(bool success,
- const SkBitmap& bitmap) {
+void PDFBrowserTest::CopyFromBackingStoreCallback(
+ const SkBitmap& bitmap,
+ content::ReadbackResponse response) {
base::MessageLoopForUI::current()->Quit();
- ASSERT_EQ(success, true);
+ ASSERT_EQ(response, content::READBACK_SUCCESS);
base::FilePath reference = ui_test_utils::GetTestFilePath(
base::FilePath(FILE_PATH_LITERAL("pdf_private")),
base::FilePath().AppendASCII(expected_filename_));

Powered by Google App Engine
This is Rietveld 408576698