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

Side by Side Diff: content/renderer/render_view_browsertest.cc

Issue 1171853003: blink: Enable test/experiment features before initilization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/shared_memory.h" 9 #include "base/memory/shared_memory.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 class RenderViewImplTest : public RenderViewTest { 140 class RenderViewImplTest : public RenderViewTest {
141 public: 141 public:
142 RenderViewImplTest() { 142 RenderViewImplTest() {
143 // Attach a pseudo keyboard device to this object. 143 // Attach a pseudo keyboard device to this object.
144 mock_keyboard_.reset(new MockKeyboard()); 144 mock_keyboard_.reset(new MockKeyboard());
145 } 145 }
146 146
147 ~RenderViewImplTest() override {} 147 ~RenderViewImplTest() override {}
148 148
149 void SetUp() override { 149 void SetUp() override {
150 RenderViewTest::SetUp();
151 // Enable Blink's experimental and test only features so that test code 150 // Enable Blink's experimental and test only features so that test code
152 // does not have to bother enabling each feature. 151 // does not have to bother enabling each feature.
153 WebRuntimeFeatures::enableExperimentalFeatures(true); 152 WebRuntimeFeatures::enableExperimentalFeatures(true);
154 WebRuntimeFeatures::enableTestOnlyFeatures(true); 153 WebRuntimeFeatures::enableTestOnlyFeatures(true);
154 RenderViewTest::SetUp();
155 } 155 }
156 156
157 RenderViewImpl* view() { 157 RenderViewImpl* view() {
158 return static_cast<RenderViewImpl*>(view_); 158 return static_cast<RenderViewImpl*>(view_);
159 } 159 }
160 160
161 int view_page_id() { 161 int view_page_id() {
162 return view()->page_id_; 162 return view()->page_id_;
163 } 163 }
164 164
(...skipping 2229 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 FROM_HERE, 2394 FROM_HERE,
2395 base::Bind(&DevToolsAgentTest::CloseWhilePaused, base::Unretained(this))); 2395 base::Bind(&DevToolsAgentTest::CloseWhilePaused, base::Unretained(this)));
2396 ExecuteJavaScript("debugger;"); 2396 ExecuteJavaScript("debugger;");
2397 2397
2398 // CloseWhilePaused should resume execution and continue here. 2398 // CloseWhilePaused should resume execution and continue here.
2399 EXPECT_FALSE(IsPaused()); 2399 EXPECT_FALSE(IsPaused());
2400 Detach(); 2400 Detach();
2401 } 2401 }
2402 2402
2403 } // namespace content 2403 } // namespace content
OLDNEW
« 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