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

Unified Diff: content/browser/memory/memory_coordinator_impl_unittest.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: update Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/memory/memory_coordinator_impl_unittest.cc
diff --git a/content/browser/memory/memory_coordinator_impl_unittest.cc b/content/browser/memory/memory_coordinator_impl_unittest.cc
index 3e83a1264047c7248e2e8203cdd4ccda78d3d6dd..bc7c4d37c5517bcbdcf7ab151cef92f3ec6c1aa1 100644
--- a/content/browser/memory/memory_coordinator_impl_unittest.cc
+++ b/content/browser/memory/memory_coordinator_impl_unittest.cc
@@ -208,7 +208,7 @@ TEST_F(MemoryCoordinatorImplTest, ChildRemovedOnConnectionError) {
}
TEST_F(MemoryCoordinatorImplTest, SetMemoryStateFailsInvalidState) {
- auto cmc1 = coordinator_->CreateChildMemoryCoordinator(1);
+ auto* cmc1 = coordinator_->CreateChildMemoryCoordinator(1);
EXPECT_FALSE(
coordinator_->SetChildMemoryState(1, MemoryState::UNKNOWN));
@@ -216,7 +216,7 @@ TEST_F(MemoryCoordinatorImplTest, SetMemoryStateFailsInvalidState) {
}
TEST_F(MemoryCoordinatorImplTest, SetMemoryStateFailsInvalidRenderer) {
- auto cmc1 = coordinator_->CreateChildMemoryCoordinator(1);
+ auto* cmc1 = coordinator_->CreateChildMemoryCoordinator(1);
EXPECT_FALSE(
coordinator_->SetChildMemoryState(2, MemoryState::THROTTLED));
@@ -224,7 +224,7 @@ TEST_F(MemoryCoordinatorImplTest, SetMemoryStateFailsInvalidRenderer) {
}
TEST_F(MemoryCoordinatorImplTest, SetMemoryStateNotDeliveredNop) {
- auto cmc1 = coordinator_->CreateChildMemoryCoordinator(1);
+ auto* cmc1 = coordinator_->CreateChildMemoryCoordinator(1);
EXPECT_FALSE(
coordinator_->SetChildMemoryState(2, MemoryState::NORMAL));
@@ -232,8 +232,8 @@ TEST_F(MemoryCoordinatorImplTest, SetMemoryStateNotDeliveredNop) {
}
TEST_F(MemoryCoordinatorImplTest, SetMemoryStateDelivered) {
- auto cmc1 = coordinator_->CreateChildMemoryCoordinator(1);
- auto cmc2 = coordinator_->CreateChildMemoryCoordinator(2);
+ auto* cmc1 = coordinator_->CreateChildMemoryCoordinator(1);
+ auto* cmc2 = coordinator_->CreateChildMemoryCoordinator(2);
EXPECT_TRUE(
coordinator_->SetChildMemoryState(1, MemoryState::THROTTLED));
@@ -257,7 +257,7 @@ TEST_F(MemoryCoordinatorImplTest, PurgeMemoryChild) {
}
TEST_F(MemoryCoordinatorImplTest, SetChildMemoryState) {
- auto cmc = coordinator_->CreateChildMemoryCoordinator(1);
+ auto* cmc = coordinator_->CreateChildMemoryCoordinator(1);
auto iter = coordinator_->children().find(1);
auto* render_process_host = coordinator_->GetMockRenderProcessHost(1);
ASSERT_TRUE(iter != coordinator_->children().end());

Powered by Google App Engine
This is Rietveld 408576698