| 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 #ifndef EXTENSIONS_RENDERER_API_BINDING_TEST_UTIL_H_ | 5 #ifndef EXTENSIONS_RENDERER_BINDINGS_API_BINDING_TEST_UTIL_H_ |
| 6 #define EXTENSIONS_RENDERER_API_BINDING_TEST_UTIL_H_ | 6 #define EXTENSIONS_RENDERER_BINDINGS_API_BINDING_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
| 12 #include "v8/include/v8.h" | 12 #include "v8/include/v8.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class DictionaryValue; | 15 class DictionaryValue; |
| 16 class ListValue; | 16 class ListValue; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 base::StringPiece key); | 120 base::StringPiece key); |
| 121 | 121 |
| 122 // As above, but returns a JSON-serialized version of the value, or | 122 // As above, but returns a JSON-serialized version of the value, or |
| 123 // "undefined", "null", "function", or "empty". | 123 // "undefined", "null", "function", or "empty". |
| 124 std::string GetStringPropertyFromObject(v8::Local<v8::Object> object, | 124 std::string GetStringPropertyFromObject(v8::Local<v8::Object> object, |
| 125 v8::Local<v8::Context> context, | 125 v8::Local<v8::Context> context, |
| 126 base::StringPiece key); | 126 base::StringPiece key); |
| 127 | 127 |
| 128 } // extensions | 128 } // extensions |
| 129 | 129 |
| 130 #endif // EXTENSIONS_RENDERER_API_BINDING_TEST_UTIL_H_ | 130 #endif // EXTENSIONS_RENDERER_BINDINGS_API_BINDING_TEST_UTIL_H_ |
| OLD | NEW |