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

Side by Side Diff: extensions/renderer/native_extension_bindings_system_unittest.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/native_extension_bindings_system.h" 5 #include "extensions/renderer/native_extension_bindings_system.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "components/crx_file/id_util.h" 10 #include "components/crx_file/id_util.h"
11 #include "extensions/common/extension.h" 11 #include "extensions/common/extension.h"
12 #include "extensions/common/extension_builder.h" 12 #include "extensions/common/extension_builder.h"
13 #include "extensions/common/extension_messages.h" 13 #include "extensions/common/extension_messages.h"
14 #include "extensions/common/manifest.h" 14 #include "extensions/common/manifest.h"
15 #include "extensions/common/permissions/permissions_data.h" 15 #include "extensions/common/permissions/permissions_data.h"
16 #include "extensions/common/value_builder.h" 16 #include "extensions/common/value_builder.h"
17 #include "extensions/renderer/api_binding_test.h" 17 #include "extensions/renderer/bindings/api_binding_test.h"
18 #include "extensions/renderer/api_binding_test_util.h" 18 #include "extensions/renderer/bindings/api_binding_test_util.h"
19 #include "extensions/renderer/api_invocation_errors.h" 19 #include "extensions/renderer/bindings/api_invocation_errors.h"
20 #include "extensions/renderer/module_system.h" 20 #include "extensions/renderer/module_system.h"
21 #include "extensions/renderer/safe_builtins.h" 21 #include "extensions/renderer/safe_builtins.h"
22 #include "extensions/renderer/script_context.h" 22 #include "extensions/renderer/script_context.h"
23 #include "extensions/renderer/script_context_set.h" 23 #include "extensions/renderer/script_context_set.h"
24 #include "extensions/renderer/string_source_map.h" 24 #include "extensions/renderer/string_source_map.h"
25 #include "extensions/renderer/test_v8_extension_configuration.h" 25 #include "extensions/renderer/test_v8_extension_configuration.h"
26 #include "testing/gmock/include/gmock/gmock.h" 26 #include "testing/gmock/include/gmock/gmock.h"
27 27
28 namespace extensions { 28 namespace extensions {
29 29
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 v8::Local<v8::Function> add_listeners = 1047 v8::Local<v8::Function> add_listeners =
1048 FunctionFromString(context, kAddListeners); 1048 FunctionFromString(context, kAddListeners);
1049 RunFunctionOnGlobal(add_listeners, context, 0, nullptr); 1049 RunFunctionOnGlobal(add_listeners, context, 0, nullptr);
1050 1050
1051 // We should have no notifications for event listeners added (since the 1051 // We should have no notifications for event listeners added (since the
1052 // mock is a strict mock, this will fail if anything was called). 1052 // mock is a strict mock, this will fail if anything was called).
1053 ::testing::Mock::VerifyAndClearExpectations(event_change_handler()); 1053 ::testing::Mock::VerifyAndClearExpectations(event_change_handler());
1054 } 1054 }
1055 1055
1056 } // namespace extensions 1056 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/native_extension_bindings_system.cc ('k') | extensions/renderer/storage_area.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698