OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/test/chromedriver/chrome/util.h" | 5 #include "chrome/test/chromedriver/chrome/util.h" |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 | 9 |
10 std::string SerializeValue(const base::Value* value) { | 10 std::string SerializeValue(const base::Value* value) { |
11 std::string json; | 11 std::string json; |
12 base::JSONWriter::Write(value, &json); | 12 base::JSONWriter::Write(*value, &json); |
13 return json; | 13 return json; |
14 } | 14 } |
OLD | NEW |