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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 } // namespace | 135 } // namespace |
136 | 136 |
137 class RenderViewImplTest : public RenderViewTest { | 137 class RenderViewImplTest : public RenderViewTest { |
138 public: | 138 public: |
139 RenderViewImplTest() { | 139 RenderViewImplTest() { |
140 // Attach a pseudo keyboard device to this object. | 140 // Attach a pseudo keyboard device to this object. |
141 mock_keyboard_.reset(new MockKeyboard()); | 141 mock_keyboard_.reset(new MockKeyboard()); |
142 } | 142 } |
143 | 143 |
144 virtual ~RenderViewImplTest() {} | 144 ~RenderViewImplTest() override {} |
145 | 145 |
146 virtual void SetUp() override { | 146 void SetUp() override { |
147 RenderViewTest::SetUp(); | 147 RenderViewTest::SetUp(); |
148 // Enable Blink's experimental and test only features so that test code | 148 // Enable Blink's experimental and test only features so that test code |
149 // does not have to bother enabling each feature. | 149 // does not have to bother enabling each feature. |
150 WebRuntimeFeatures::enableExperimentalFeatures(true); | 150 WebRuntimeFeatures::enableExperimentalFeatures(true); |
151 WebRuntimeFeatures::enableTestOnlyFeatures(true); | 151 WebRuntimeFeatures::enableTestOnlyFeatures(true); |
152 } | 152 } |
153 | 153 |
154 RenderViewImpl* view() { | 154 RenderViewImpl* view() { |
155 return static_cast<RenderViewImpl*>(view_); | 155 return static_cast<RenderViewImpl*>(view_); |
156 } | 156 } |
(...skipping 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2493 ProcessPendingMessages(); | 2493 ProcessPendingMessages(); |
2494 base::Time after_navigation = | 2494 base::Time after_navigation = |
2495 base::Time::Now() + base::TimeDelta::FromDays(1); | 2495 base::Time::Now() + base::TimeDelta::FromDays(1); |
2496 | 2496 |
2497 base::Time late_nav_reported_start = | 2497 base::Time late_nav_reported_start = |
2498 base::Time::FromDoubleT(GetMainFrame()->performance().navigationStart()); | 2498 base::Time::FromDoubleT(GetMainFrame()->performance().navigationStart()); |
2499 EXPECT_LE(late_nav_reported_start, after_navigation); | 2499 EXPECT_LE(late_nav_reported_start, after_navigation); |
2500 } | 2500 } |
2501 | 2501 |
2502 } // namespace content | 2502 } // namespace content |
OLD | NEW |