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

Unified Diff: chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job_unittest.cc

Issue 2592983002: [devtools] Support different encodings for Page.CaptureScreenshot. (Closed)
Patch Set: Encode in ui snapshot methods instead. Created 3 years, 12 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
Index: chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job_unittest.cc
diff --git a/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job_unittest.cc b/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job_unittest.cc
index 5775b3694c0ef83aaaad3becacfbf16cad69feb6..cf767dadfcbc0bd480d86ea947a5a377a42363b4 100644
--- a/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job_unittest.cc
+++ b/chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job_unittest.cc
@@ -148,7 +148,7 @@ class MockScreenshotDelegate : public DeviceCommandScreenshotJob::Delegate {
void TakeSnapshot(
gfx::NativeWindow window,
const gfx::Rect& source_rect,
- const ui::GrabWindowSnapshotAsyncPNGCallback& callback) override;
+ const ui::GrabWindowSnapshotAsyncEncodedCallback& callback) override;
std::unique_ptr<UploadJob> CreateUploadJob(const GURL&,
UploadJob::Delegate*) override;
@@ -173,7 +173,7 @@ bool MockScreenshotDelegate::IsScreenshotAllowed() {
void MockScreenshotDelegate::TakeSnapshot(
gfx::NativeWindow window,
const gfx::Rect& source_rect,
- const ui::GrabWindowSnapshotAsyncPNGCallback& callback) {
+ const ui::GrabWindowSnapshotAsyncEncodedCallback& callback) {
const int width = source_rect.width();
const int height = source_rect.height();
scoped_refptr<base::RefCountedBytes> test_png =

Powered by Google App Engine
This is Rietveld 408576698