Index: chrome/test/chromedriver/chrome/util.cc |
diff --git a/chrome/test/chromedriver/chrome/util.cc b/chrome/test/chromedriver/chrome/util.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b7f1a5cde097922b65eda5c1f3f4553adcbfb998 |
--- /dev/null |
+++ b/chrome/test/chromedriver/chrome/util.cc |
@@ -0,0 +1,14 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/test/chromedriver/chrome/util.h" |
+ |
+#include "base/json/json_writer.h" |
+#include "base/values.h" |
+ |
+std::string SerializeValue(const base::Value* value) { |
+ std::string json; |
+ base::JSONWriter::Write(value, &json); |
+ return json; |
+} |