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); |