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

Unified Diff: components/html_viewer/ax_provider_impl_unittest.cc

Issue 1108973004: Update ax_provider_unittest.cc for new BlinkPlatformImpl ctor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/ax_provider_impl_unittest.cc
diff --git a/components/html_viewer/ax_provider_impl_unittest.cc b/components/html_viewer/ax_provider_impl_unittest.cc
index f8688d3752f5f507135bc9028d76d7112e01b267..a475d066e405862454642e5e1a28d2db4762bbd8 100644
--- a/components/html_viewer/ax_provider_impl_unittest.cc
+++ b/components/html_viewer/ax_provider_impl_unittest.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "components/html_viewer/blink_platform_impl.h"
+#include "components/scheduler/renderer/renderer_scheduler.h"
#include "gin/v8_initializer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/platform/WebData.h"
@@ -49,13 +50,16 @@ class AxProviderImplTest : public testing::Test {
#if defined(V8_USE_EXTERNAL_STARTUP_DATA)
gin::V8Initializer::LoadV8Snapshot();
#endif
- blink::initialize(new html_viewer::BlinkPlatformImpl(nullptr));
+ renderer_scheduler_ = scheduler::RendererScheduler::Create();
sky 2015/04/28 21:25:06 Can you move this to member initializer list?
msw 2015/04/28 21:30:26 Done.
+ blink::initialize(
+ new html_viewer::BlinkPlatformImpl(nullptr, renderer_scheduler_.get()));
}
~AxProviderImplTest() override { blink::shutdown(); }
private:
base::MessageLoopForUI message_loop;
+ scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_;
};
struct NodeCatcher {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698