| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |