| Index: chrome/browser/extensions/extension_function_test_utils.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_function_test_utils.cc (revision 147987)
|
| +++ chrome/browser/extensions/extension_function_test_utils.cc (working copy)
|
| @@ -129,6 +129,8 @@
|
| Browser* browser,
|
| RunFunctionFlags flags) {
|
| scoped_refptr<ExtensionFunction> function_owner(function);
|
| + // Without a callback the function will not generate a result.
|
| + function->set_has_callback(true);
|
| RunFunction(function, args, browser, flags);
|
| EXPECT_FALSE(function->GetResultList()) << "Did not expect a result";
|
| return function->GetError();
|
| @@ -146,6 +148,8 @@
|
| Browser* browser,
|
| RunFunctionFlags flags) {
|
| scoped_refptr<ExtensionFunction> function_owner(function);
|
| + // Without a callback the function will not generate a result.
|
| + function->set_has_callback(true);
|
| RunFunction(function, args, browser, flags);
|
| EXPECT_TRUE(function->GetError().empty()) << "Unexpected error: "
|
| << function->GetError();
|
|
|