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

Unified Diff: chrome/browser/extensions/extension_test_api.cc

Issue 174633: Add browser tests for extensions tab API. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months 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
« no previous file with comments | « chrome/browser/extensions/extension_test_api.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_test_api.cc
===================================================================
--- chrome/browser/extensions/extension_test_api.cc (revision 24947)
+++ chrome/browser/extensions/extension_test_api.cc (working copy)
@@ -8,6 +8,7 @@
namespace extension_test_api_functions {
const char kPassFunction[] = "test.notifyPass";
const char kFailFunction[] = "test.notifyFail";
+const char kLogFunction[] = "test.log";
}; // namespace extension_test_api_functions
bool ExtensionTestPassFunction::RunImpl() {
@@ -27,3 +28,11 @@
Details<std::string>(&message));
return true;
}
+
+bool ExtensionTestLogFunction::RunImpl() {
+ std::string message;
+ EXTENSION_FUNCTION_VALIDATE(args_->GetAsString(&message));
+ printf("%s\n", message.c_str());
+ LOG(INFO) << message;
+ return true;
+}
Property changes on: chrome\browser\extensions\extension_test_api.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/extensions/extension_test_api.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698