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

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

Issue 686523002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/discardable_memory.h" 6 #include "base/memory/discardable_memory.h"
7 #include "base/memory/scoped_vector.h" 7 #include "base/memory/scoped_vector.h"
8 #include "content/public/browser/content_browser_client.h" 8 #include "content/public/browser/content_browser_client.h"
9 #include "content/public/common/content_client.h" 9 #include "content/public/common/content_client.h"
10 #include "content/public/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
11 #include "content/public/renderer/content_renderer_client.h" 11 #include "content/public/renderer/content_renderer_client.h"
12 #include "content/renderer/render_process_impl.h" 12 #include "content/renderer/render_process_impl.h"
13 #include "content/renderer/render_thread_impl.h" 13 #include "content/renderer/render_thread_impl.h"
14 #include "content/test/mock_render_process.h" 14 #include "content/test/mock_render_process.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace content { 17 namespace content {
18 namespace { 18 namespace {
19 19
20 class RenderThreadImplBrowserTest : public testing::Test { 20 class RenderThreadImplBrowserTest : public testing::Test {
21 public: 21 public:
22 virtual ~RenderThreadImplBrowserTest() {} 22 ~RenderThreadImplBrowserTest() override {}
23 }; 23 };
24 24
25 class DummyListener : public IPC::Listener { 25 class DummyListener : public IPC::Listener {
26 public: 26 public:
27 bool OnMessageReceived(const IPC::Message& message) override { return true; } 27 bool OnMessageReceived(const IPC::Message& message) override { return true; }
28 }; 28 };
29 29
30 void CheckRenderThreadInputHandlerManager(RenderThreadImpl* thread) { 30 void CheckRenderThreadInputHandlerManager(RenderThreadImpl* thread) {
31 ASSERT_TRUE(thread->input_handler_manager()); 31 ASSERT_TRUE(thread->input_handler_manager());
32 } 32 }
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 if ((*iter)->Lock() == base::DISCARDABLE_MEMORY_LOCK_STATUS_SUCCESS) 123 if ((*iter)->Lock() == base::DISCARDABLE_MEMORY_LOCK_STATUS_SUCCESS)
124 ++blocks_left; 124 ++blocks_left;
125 } 125 }
126 EXPECT_LE(blocks_left, 1); 126 EXPECT_LE(blocks_left, 1);
127 127
128 thread->WidgetDestroyed(); 128 thread->WidgetDestroyed();
129 } 129 }
130 130
131 } // namespace 131 } // namespace
132 } // namespace content 132 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/v8_var_converter_unittest.cc ('k') | content/renderer/render_thread_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698