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

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

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase 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 63edb9918e2e6da4ad5c58795a592f9775c81504..a0e1b319ea913dff91948416fd4b8d94f70bc0f2 100644
--- a/content/browser/memory/memory_coordinator_impl_unittest.cc
+++ b/content/browser/memory/memory_coordinator_impl_unittest.cc
@@ -199,7 +199,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));
@@ -207,7 +207,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));
@@ -215,7 +215,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));
@@ -223,8 +223,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));
@@ -248,7 +248,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());
« no previous file with comments | « content/browser/media/session/audio_focus_manager.cc ('k') | content/browser/renderer_host/media/media_devices_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698