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

Side by Side Diff: components/html_viewer/ax_provider_impl_unittest.cc

Issue 1164483003: Allow startup with missing V8 snapshot file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix misplaced ifdef for Windows Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « chromecast/browser/cast_content_browser_client.cc ('k') | components/html_viewer/setup.cc » ('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 "components/html_viewer/ax_provider_impl.h" 5 #include "components/html_viewer/ax_provider_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "components/html_viewer/blink_platform_impl.h" 9 #include "components/html_viewer/blink_platform_impl.h"
10 #include "components/scheduler/renderer/renderer_scheduler.h" 10 #include "components/scheduler/renderer/renderer_scheduler.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual ~TestWebViewClient() {} 44 virtual ~TestWebViewClient() {}
45 }; 45 };
46 46
47 class AxProviderImplTest : public testing::Test { 47 class AxProviderImplTest : public testing::Test {
48 public: 48 public:
49 AxProviderImplTest() 49 AxProviderImplTest()
50 : message_loop_(new base::MessageLoopForUI()), 50 : message_loop_(new base::MessageLoopForUI()),
51 renderer_scheduler_(scheduler::RendererScheduler::Create()) { 51 renderer_scheduler_(scheduler::RendererScheduler::Create()) {
52 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) 52 #if defined(V8_USE_EXTERNAL_STARTUP_DATA)
53 gin::V8Initializer::LoadV8Snapshot(); 53 gin::V8Initializer::LoadV8Snapshot();
54 gin::V8Initializer::LoadV8Natives();
54 #endif 55 #endif
55 blink::initialize( 56 blink::initialize(
56 new html_viewer::BlinkPlatformImpl(nullptr, renderer_scheduler_.get())); 57 new html_viewer::BlinkPlatformImpl(nullptr, renderer_scheduler_.get()));
57 } 58 }
58 59
59 ~AxProviderImplTest() override { 60 ~AxProviderImplTest() override {
60 renderer_scheduler_->Shutdown(); 61 renderer_scheduler_->Shutdown();
61 message_loop_.reset(); 62 message_loop_.reset();
62 blink::shutdown(); 63 blink::shutdown();
63 } 64 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 "", 189 "",
189 "")); 190 ""));
190 } 191 }
191 } 192 }
192 193
193 // TODO(aa): Test bounds. 194 // TODO(aa): Test bounds.
194 // TODO(aa): Test sibling ordering of foo/bar/baz. 195 // TODO(aa): Test sibling ordering of foo/bar/baz.
195 196
196 view->close(); 197 view->close();
197 } 198 }
OLDNEW
« no previous file with comments | « chromecast/browser/cast_content_browser_client.cc ('k') | components/html_viewer/setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698