OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/arc/test/fake_app_instance.h" | 5 #include "components/arc/test/fake_app_instance.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 .AppendASCII(icon_file_name); | 95 .AppendASCII(icon_file_name); |
96 CHECK(base::PathExists(icon_file_path)); | 96 CHECK(base::PathExists(icon_file_path)); |
97 CHECK(base::ReadFileToString(icon_file_path, png_data_as_string)); | 97 CHECK(base::ReadFileToString(icon_file_path, png_data_as_string)); |
98 | 98 |
99 app_host_->OnAppIcon(app.package, app.activity, scale_factor, | 99 app_host_->OnAppIcon(app.package, app.activity, scale_factor, |
100 mojo::Array<uint8_t>::From(*png_data_as_string)); | 100 mojo::Array<uint8_t>::From(*png_data_as_string)); |
101 | 101 |
102 return true; | 102 return true; |
103 } | 103 } |
104 | 104 |
| 105 void FakeAppInstance::WaitForIncomingMethodCall() { |
| 106 binding_.WaitForIncomingMethodCall(); |
| 107 } |
| 108 |
105 } // namespace arc | 109 } // namespace arc |
OLD | NEW |