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 #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 Loading... |
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_ |
OLD | NEW |