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

Side by Side Diff: components/arc/test/fake_app_instance.cc

Issue 1534413002: arc-bridge: Make ArcAppModelBuilderTest more reliable (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Even more stable runs Created 5 years 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 unified diff | Download patch
« no previous file with comments | « components/arc/test/fake_app_instance.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« 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