std::make_unique<base::RunLoop>();Since ChromeRenderViewTest now initializes the default task runner in SetUp() rather than constructor, this needs to happen in SetUp() as well.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
chrome/renderer/autofill/password_generation_agent_browsertest.cc RSLGTM
class CustomTaskEnvironment : public base::test::TaskEnvironment {Drive-by: Do you want to document why this needs a custom task environment?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
class CustomTaskEnvironment : public base::test::TaskEnvironment {Drive-by: Do you want to document why this needs a custom task environment?
Good idea, done.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
17 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: content/public/test/render_view_test.h
Insertions: 3, Deletions: 0.
@@ -204,6 +204,9 @@
// Install a fake URL loader factory for the RenderFrameImpl.
void CreateFakeURLLoaderFactory();
+ // A derived TaskEnvironment is needed to create WebThreadScheduler and give
+ // it access to the sequence_manager that's owned by the TaskEnvironment base
+ // class.
class CustomTaskEnvironment : public base::test::TaskEnvironment {
public:
CustomTaskEnvironment();
```
[task] Avoid using ThreadControllerImpl in RenderViewTest
This CL converts RenderViewTest to use a custom TaskEnvironment that
creates WebThreadScheduler directly with sequence_manager, instead
of running on top of (deprecated) ThreadControllerImpl.
This requires exposing CreatePrioritySettingsForTesting from blink.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |