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

Unified Diff: chrome/test/webdriver/webdriver_util.h

Issue 8341044: Enhance and refactor ChromeDriver's capability handling. Log warning for (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 2 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
Index: chrome/test/webdriver/webdriver_util.h
diff --git a/chrome/test/webdriver/webdriver_util.h b/chrome/test/webdriver/webdriver_util.h
index e36bdb733da438e92afdf4bb7e48472670397895..c512ba50370303b0a3ae675d7b6d75476bed12cd 100644
--- a/chrome/test/webdriver/webdriver_util.h
+++ b/chrome/test/webdriver/webdriver_util.h
@@ -11,14 +11,11 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/values.h"
#include "chrome/test/automation/value_conversion_traits.h"
class FilePath;
-namespace base {
-class Value;
-}
-
namespace webdriver {
// Generates a random, 32-character hexidecimal ID.
@@ -27,6 +24,13 @@ std::string GenerateRandomID();
// Returns the equivalent JSON string for the given value.
std::string JsonStringify(const base::Value* value);
+// Returns the JSON string for the given value, with the exception that
+// long strings are shortened for easier display.
+std::string JsonStringifyForDisplay(const base::Value* value);
+
+// Returns the string representation of the given type, for display purposes.
+const char* GetJsonTypeName(base::Value::Type type);
+
#if defined(OS_MACOSX)
// Gets the paths to the user and local application directory.
void GetApplicationDirs(std::vector<FilePath>* app_dirs);
« no previous file with comments | « chrome/test/webdriver/webdriver_capabilities_parser_unittest.cc ('k') | chrome/test/webdriver/webdriver_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698