| 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.h" | |
| 6 #include "base/bind.h" | 5 #include "base/bind.h" |
| 7 #include "base/memory/ptr_util.h" | 6 #include "base/memory/ptr_util.h" |
| 8 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 9 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 10 #include "base/values.h" | 9 #include "base/values.h" |
| 11 #include "extensions/renderer/api_binding_hooks.h" | 10 #include "extensions/renderer/bindings/api_binding.h" |
| 12 #include "extensions/renderer/api_binding_hooks_test_delegate.h" | 11 #include "extensions/renderer/bindings/api_binding_hooks.h" |
| 13 #include "extensions/renderer/api_binding_test.h" | 12 #include "extensions/renderer/bindings/api_binding_hooks_test_delegate.h" |
| 14 #include "extensions/renderer/api_binding_test_util.h" | 13 #include "extensions/renderer/bindings/api_binding_test.h" |
| 15 #include "extensions/renderer/api_event_handler.h" | 14 #include "extensions/renderer/bindings/api_binding_test_util.h" |
| 16 #include "extensions/renderer/api_invocation_errors.h" | 15 #include "extensions/renderer/bindings/api_event_handler.h" |
| 17 #include "extensions/renderer/api_request_handler.h" | 16 #include "extensions/renderer/bindings/api_invocation_errors.h" |
| 18 #include "extensions/renderer/api_type_reference_map.h" | 17 #include "extensions/renderer/bindings/api_request_handler.h" |
| 19 #include "extensions/renderer/binding_access_checker.h" | 18 #include "extensions/renderer/bindings/api_type_reference_map.h" |
| 19 #include "extensions/renderer/bindings/binding_access_checker.h" |
| 20 #include "gin/arguments.h" | 20 #include "gin/arguments.h" |
| 21 #include "gin/converter.h" | 21 #include "gin/converter.h" |
| 22 #include "gin/public/context_holder.h" | 22 #include "gin/public/context_holder.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" | 24 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" |
| 25 #include "v8/include/v8.h" | 25 #include "v8/include/v8.h" |
| 26 | 26 |
| 27 namespace extensions { | 27 namespace extensions { |
| 28 | 28 |
| 29 using namespace api_errors; | 29 using namespace api_errors; |
| (...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 | 1273 |
| 1274 // The extra property should be present on the binding object. | 1274 // The extra property should be present on the binding object. |
| 1275 EXPECT_EQ("42", GetStringPropertyFromObject(binding_object, context, | 1275 EXPECT_EQ("42", GetStringPropertyFromObject(binding_object, context, |
| 1276 "hookedProperty")); | 1276 "hookedProperty")); |
| 1277 // Sanity check: other values should still be there. | 1277 // Sanity check: other values should still be there. |
| 1278 EXPECT_EQ("function", | 1278 EXPECT_EQ("function", |
| 1279 GetStringPropertyFromObject(binding_object, context, "oneString")); | 1279 GetStringPropertyFromObject(binding_object, context, "oneString")); |
| 1280 } | 1280 } |
| 1281 | 1281 |
| 1282 } // namespace extensions | 1282 } // namespace extensions |
| OLD | NEW |