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

Unified Diff: extensions/renderer/module_system_test.h

Issue 2876123003: Add ScopedTaskEnvironment in extensions::ModuleSystemTest. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/api_test_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/module_system_test.h
diff --git a/extensions/renderer/module_system_test.h b/extensions/renderer/module_system_test.h
index 1cfbb7c46fc116eb82db1d8e4f444edd315d6858..df58fe200550030921bd391ab57fb11ea7f9fe9f 100644
--- a/extensions/renderer/module_system_test.h
+++ b/extensions/renderer/module_system_test.h
@@ -6,6 +6,7 @@
#define EXTENSIONS_RENDERER_MODULE_SYSTEM_TEST_H_
#include "base/macros.h"
+#include "base/test/scoped_task_environment.h"
#include "extensions/renderer/module_system.h"
#include "extensions/renderer/script_context.h"
#include "gin/public/context_holder.h"
@@ -98,6 +99,7 @@ class ModuleSystemTest : public testing::Test {
void RunResolvedPromises();
private:
+ base::test::ScopedTaskEnvironment scoped_task_environment_;
v8::Isolate* isolate_;
std::unique_ptr<ModuleSystemTestEnvironment> env_;
bool should_assertions_be_made_;
« no previous file with comments | « extensions/renderer/api_test_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698