Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Unified Diff: chrome/browser/extensions/extension_function_test_utils.h

Issue 8008012: chrome.clear: Increasing granularity of public API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing after 2 months (ugh). Extension test. Fiddling. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_function_test_utils.h
diff --git a/chrome/browser/extensions/extension_function_test_utils.h b/chrome/browser/extensions/extension_function_test_utils.h
index e248ec34efc7c6f06e1412380a43d07526454e5f..1a2f21cdc5d1a7e82b7b4a608701961df8ef1104 100644
--- a/chrome/browser/extensions/extension_function_test_utils.h
+++ b/chrome/browser/extensions/extension_function_test_utils.h
@@ -69,6 +69,16 @@ base::Value* RunFunctionAndReturnResult(UIThreadExtensionFunction* function,
const std::string& args,
Browser* browser);
+// Run |function| with |args|. Adds an error to the current test if |function|
+// returns an error, or is passed a result.
+bool RunFunctionWithoutResult(UIThreadExtensionFunction* function,
+ const std::string& args,
+ Browser* browser,
+ RunFunctionFlags flags);
+bool RunFunctionWithoutResult(UIThreadExtensionFunction* function,
+ const std::string& args,
+ Browser* browser);
+
// Create and run |function| with |args|. Works with both synchronous and async
// functions.
//

Powered by Google App Engine
This is Rietveld 408576698