| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "extensions/renderer/api_binding_test_util.h" | 5 #include "extensions/renderer/bindings/api_binding_test_util.h" |
| 6 | 6 |
| 7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
| 8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "content/public/child/v8_value_converter.h" | 11 #include "content/public/child/v8_value_converter.h" |
| 12 #include "gin/converter.h" | 12 #include "gin/converter.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 return V8ToBaseValue(GetPropertyFromObject(object, context, key), context); | 199 return V8ToBaseValue(GetPropertyFromObject(object, context, key), context); |
| 200 } | 200 } |
| 201 | 201 |
| 202 std::string GetStringPropertyFromObject(v8::Local<v8::Object> object, | 202 std::string GetStringPropertyFromObject(v8::Local<v8::Object> object, |
| 203 v8::Local<v8::Context> context, | 203 v8::Local<v8::Context> context, |
| 204 base::StringPiece key) { | 204 base::StringPiece key) { |
| 205 return V8ToString(GetPropertyFromObject(object, context, key), context); | 205 return V8ToString(GetPropertyFromObject(object, context, key), context); |
| 206 } | 206 } |
| 207 | 207 |
| 208 } // namespace extensions | 208 } // namespace extensions |
| OLD | NEW |