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

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

Issue 2749973002: arc: Fix Default icon issue when cached icon file is corrupted. (Closed)
Patch Set: 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
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..d16e3b6d35909fbbdc7603d0431aeb26f4c89a05 100644
--- a/components/arc/test/fake_app_instance.cc
+++ b/components/arc/test/fake_app_instance.cc
@@ -119,6 +119,13 @@ bool FakeAppInstance::GenerateAndSendIcon(const mojom::AppInfo& app,
return true;
}
+void FakeAppInstance::GenerateAndSendBadIcon(const mojom::AppInfo& app,
+ mojom::ScaleFactor scale_factor,
+ std::string* png_data_as_string) {
+ 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);

Powered by Google App Engine
This is Rietveld 408576698