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

Side by Side Diff: gin/modules/module_registry_unittest.cc

Issue 1541743002: Switch to standard integer types in gin/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « gin/modules/module_registry.cc ('k') | gin/modules/module_runner_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gin/modules/module_registry.cc ('k') | gin/modules/module_runner_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698