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/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
263 // message loop until they do. | 263 // message loop until they do. |
264 if (!response_delegate.HasResponse()) { | 264 if (!response_delegate.HasResponse()) { |
265 response_delegate.set_should_post_quit(true); | 265 response_delegate.set_should_post_quit(true); |
266 content::RunMessageLoop(); | 266 content::RunMessageLoop(); |
267 } | 267 } |
268 | 268 |
269 EXPECT_TRUE(response_delegate.HasResponse()); | 269 EXPECT_TRUE(response_delegate.HasResponse()); |
270 return response_delegate.GetResponse(); | 270 return response_delegate.GetResponse(); |
271 } | 271 } |
272 | 272 |
273 bool RunFunction(UIThreadExtensionFunction* function, | |
274 const std::string& args, | |
275 Browser* browser) { | |
276 return RunFunction(function, args, browser, NONE); | |
Fady Samuel
2014/04/07 20:01:14
What is the purpose of this change?
paulmeyer
2014/04/07 20:56:10
Every other "RunFunction" in this file has an over
| |
277 } | |
278 | |
273 } // namespace extension_function_test_utils | 279 } // namespace extension_function_test_utils |
OLD | NEW |