OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/extensions/extension_function_test_utils.h" | 5 #include "chrome/browser/extensions/extension_function_test_utils.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
211 function->Run(); | 211 function->Run(); |
212 | 212 |
213 // If the RunImpl of |function| didn't already call SendResponse, run the | 213 // If the RunImpl of |function| didn't already call SendResponse, run the |
214 // message loop until they do. | 214 // message loop until they do. |
215 if (!response_delegate.HasResponse()) { | 215 if (!response_delegate.HasResponse()) { |
216 response_delegate.set_should_post_quit(true); | 216 response_delegate.set_should_post_quit(true); |
217 ui_test_utils::RunMessageLoop(); | 217 ui_test_utils::RunMessageLoop(); |
218 } | 218 } |
219 | 219 |
220 EXPECT_TRUE(response_delegate.HasResponse()); | 220 EXPECT_TRUE(response_delegate.HasResponse()); |
221 return response_delegate.GetResponse(); | 221 bool result = response_delegate.GetResponse(); |
222 return result; | |
Randy Smith (Not in Mondays)
2012/06/18 18:42:58
Why?
benjhayden
2012/06/19 15:01:59
Done.
| |
222 } | 223 } |
223 | 224 |
224 } // namespace extension_function_test_utils | 225 } // namespace extension_function_test_utils |
OLD | NEW |