| Index: extensions/browser/api_test_utils.h
|
| diff --git a/extensions/browser/api_test_utils.h b/extensions/browser/api_test_utils.h
|
| index 19af3525bbcc70e808954138bacd54f06794ee80..2331eec58ce27476742220212bc6c8faa0912775 100644
|
| --- a/extensions/browser/api_test_utils.h
|
| +++ b/extensions/browser/api_test_utils.h
|
| @@ -55,6 +55,17 @@ base::Value* RunFunctionAndReturnSingleResult(
|
| content::BrowserContext* context,
|
| RunFunctionFlags flags);
|
|
|
| +// Run |function| with |args| and return the resulting error. Adds an error to
|
| +// the current test if |function| returns a result. Takes ownership of
|
| +// |function|.
|
| +std::string RunFunctionAndReturnError(UIThreadExtensionFunction* function,
|
| + const std::string& args,
|
| + content::BrowserContext* context,
|
| + RunFunctionFlags flags);
|
| +std::string RunFunctionAndReturnError(UIThreadExtensionFunction* function,
|
| + const std::string& args,
|
| + content::BrowserContext* context);
|
| +
|
| // Create and run |function| with |args|. Works with both synchronous and async
|
| // functions. Ownership of |function| remains with the caller.
|
| //
|
|
|