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

Side by Side Diff: extensions/renderer/bindings/api_binding_test_util.cc

Issue 2947463002: [Extensions Bindings] Add a bindings/ subdirectory under renderer (Closed)
Patch Set: . Created 3 years, 6 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/api_binding_test_util.h ('k') | extensions/renderer/bindings/api_binding_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698