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

Side by Side Diff: content/child/blink_platform_impl_unittest.cc

Issue 630743005: Replace OVERRIDE and FINAL with override and final in content/child/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « content/child/blink_platform_impl.cc ('k') | content/child/browser_font_resource_trusted.h » ('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 "content/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "net/base/net_util.h" 9 #include "net/base/net_util.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "third_party/WebKit/public/platform/WebString.h" 11 #include "third_party/WebKit/public/platform/WebString.h"
12 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" 12 #include "third_party/WebKit/public/web/WebSecurityOrigin.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 // Derives BlinkPlatformImpl for testing shared timers. 16 // Derives BlinkPlatformImpl for testing shared timers.
17 class TestBlinkPlatformImpl : public BlinkPlatformImpl { 17 class TestBlinkPlatformImpl : public BlinkPlatformImpl {
18 public: 18 public:
19 TestBlinkPlatformImpl() : mock_monotonically_increasing_time_(0) {} 19 TestBlinkPlatformImpl() : mock_monotonically_increasing_time_(0) {}
20 20
21 // Returns mock time when enabled. 21 // Returns mock time when enabled.
22 virtual double monotonicallyIncreasingTime() OVERRIDE { 22 virtual double monotonicallyIncreasingTime() override {
23 if (mock_monotonically_increasing_time_ > 0.0) 23 if (mock_monotonically_increasing_time_ > 0.0)
24 return mock_monotonically_increasing_time_; 24 return mock_monotonically_increasing_time_;
25 return BlinkPlatformImpl::monotonicallyIncreasingTime(); 25 return BlinkPlatformImpl::monotonicallyIncreasingTime();
26 } 26 }
27 27
28 virtual void OnStartSharedTimer(base::TimeDelta delay) OVERRIDE { 28 virtual void OnStartSharedTimer(base::TimeDelta delay) override {
29 shared_timer_delay_ = delay; 29 shared_timer_delay_ = delay;
30 } 30 }
31 31
32 base::TimeDelta shared_timer_delay() { return shared_timer_delay_; } 32 base::TimeDelta shared_timer_delay() { return shared_timer_delay_; }
33 33
34 void set_mock_monotonically_increasing_time(double mock_time) { 34 void set_mock_monotonically_increasing_time(double mock_time) {
35 mock_monotonically_increasing_time_ = mock_time; 35 mock_monotonically_increasing_time_ = mock_time;
36 } 36 }
37 37
38 private: 38 private:
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 EXPECT_TRUE(platform_impl.isReservedIPAddress( 188 EXPECT_TRUE(platform_impl.isReservedIPAddress(
189 blink::WebSecurityOrigin::createFromString(addressString))); 189 blink::WebSecurityOrigin::createFromString(addressString)));
190 } else { 190 } else {
191 EXPECT_FALSE(platform_impl.isReservedIPAddress( 191 EXPECT_FALSE(platform_impl.isReservedIPAddress(
192 blink::WebSecurityOrigin::createFromString(addressString))); 192 blink::WebSecurityOrigin::createFromString(addressString)));
193 } 193 }
194 } 194 }
195 } 195 }
196 196
197 } // namespace content 197 } // namespace content
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/child/browser_font_resource_trusted.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698