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

Unified Diff: components/arc/test/fake_app_instance.cc

Issue 2763753003: [Merge To M58]Fix Default icon issue when cached icon file is corrupted. (Closed)
Patch Set: Rebase. Created 3 years, 9 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 | « components/arc/test/fake_app_instance.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/test/fake_app_instance.cc
diff --git a/components/arc/test/fake_app_instance.cc b/components/arc/test/fake_app_instance.cc
index 5ffa05cef0592f3eea65d6f2328119e7f1924e87..e9555094efd13075f484bc6a294c8874659a5cec 100644
--- a/components/arc/test/fake_app_instance.cc
+++ b/components/arc/test/fake_app_instance.cc
@@ -119,6 +119,12 @@ bool FakeAppInstance::GenerateAndSendIcon(const mojom::AppInfo& app,
return true;
}
+void FakeAppInstance::GenerateAndSendBadIcon(const mojom::AppInfo& app,
+ mojom::ScaleFactor scale_factor) {
+ std::vector<uint8_t> badIcon(10, 1);
+ app_host_->OnAppIcon(app.package_name, app.activity, scale_factor, badIcon);
+}
+
bool FakeAppInstance::GetFakeIcon(mojom::ScaleFactor scale_factor,
std::string* png_data_as_string) {
CHECK(png_data_as_string != nullptr);
« no previous file with comments | « components/arc/test/fake_app_instance.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698