OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "gin/modules/module_registry.h" | 5 #include "gin/modules/module_registry.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
8 #include "gin/modules/module_registry_observer.h" | 11 #include "gin/modules/module_registry_observer.h" |
9 #include "gin/modules/module_runner_delegate.h" | 12 #include "gin/modules/module_runner_delegate.h" |
10 #include "gin/public/context_holder.h" | 13 #include "gin/public/context_holder.h" |
11 #include "gin/public/isolate_holder.h" | 14 #include "gin/public/isolate_holder.h" |
12 #include "gin/shell_runner.h" | 15 #include "gin/shell_runner.h" |
13 #include "gin/test/v8_test.h" | 16 #include "gin/test/v8_test.h" |
14 #include "v8/include/v8.h" | 17 #include "v8/include/v8.h" |
15 | 18 |
16 namespace gin { | 19 namespace gin { |
17 | 20 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 helper.runner->Run(source, "script"); | 156 helper.runner->Run(source, "script"); |
154 EXPECT_EQ(no_such_module_set, registry->unsatisfied_dependencies()); | 157 EXPECT_EQ(no_such_module_set, registry->unsatisfied_dependencies()); |
155 | 158 |
156 // Should have no effect on the unsatisfied_dependencies set. | 159 // Should have no effect on the unsatisfied_dependencies set. |
157 ModuleRegistry::LoadModuleCallback callback = base::Bind(OnModuleLoadedNoOp); | 160 ModuleRegistry::LoadModuleCallback callback = base::Bind(OnModuleLoadedNoOp); |
158 registry->LoadModule(instance_->isolate(), "one", callback); | 161 registry->LoadModule(instance_->isolate(), "one", callback); |
159 EXPECT_EQ(no_such_module_set, registry->unsatisfied_dependencies()); | 162 EXPECT_EQ(no_such_module_set, registry->unsatisfied_dependencies()); |
160 } | 163 } |
161 | 164 |
162 } // namespace gin | 165 } // namespace gin |
OLD | NEW |