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

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

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
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 #ifndef COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ 5 #ifndef COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_
6 #define COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ 6 #define COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 int refresh_app_list_count() const { return refresh_app_list_count_; } 78 int refresh_app_list_count() const { return refresh_app_list_count_; }
79 79
80 const ScopedVector<Request>& launch_requests() const { 80 const ScopedVector<Request>& launch_requests() const {
81 return launch_requests_; 81 return launch_requests_;
82 } 82 }
83 83
84 const ScopedVector<IconRequest>& icon_requests() const { 84 const ScopedVector<IconRequest>& icon_requests() const {
85 return icon_requests_; 85 return icon_requests_;
86 } 86 }
87 87
88 // This method can be called on tests when a method is intended to
89 // be called across a Mojo proxy.
90 void WaitForIncomingMethodCall();
91
88 private: 92 private:
89 // Mojo endpoints. 93 // Mojo endpoints.
90 mojo::Binding<AppInstance> binding_; 94 mojo::Binding<AppInstance> binding_;
91 AppHost* app_host_; 95 AppHost* app_host_;
92 // Number of RefreshAppList calls. 96 // Number of RefreshAppList calls.
93 int refresh_app_list_count_ = 0; 97 int refresh_app_list_count_ = 0;
94 // Keeps information about launch requests. 98 // Keeps information about launch requests.
95 ScopedVector<Request> launch_requests_; 99 ScopedVector<Request> launch_requests_;
96 // Keeps information about icon load requests. 100 // Keeps information about icon load requests.
97 ScopedVector<IconRequest> icon_requests_; 101 ScopedVector<IconRequest> icon_requests_;
98 }; 102 };
99 103
100 } // namespace arc 104 } // namespace arc
101 105
102 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_ 106 #endif // COMPONENTS_ARC_TEST_FAKE_APP_INSTANCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_unittest.cc ('k') | components/arc/test/fake_app_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698