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

Side by Side Diff: content/public/test/mock_render_process_host.cc

Issue 2578983003: Add AudioStreamRegistry. Move stream counting logic (Closed)
Patch Set: Remove active audio tracking from ARH to see what tests break. Created 3 years, 11 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/public/test/mock_render_process_host.h ('k') | content/test/BUILD.gn » ('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 (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 "content/public/test/mock_render_process_host.h" 5 #include "content/public/test/mock_render_process_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void MockRenderProcessHost::WidgetRestored() { 136 void MockRenderProcessHost::WidgetRestored() {
137 } 137 }
138 138
139 void MockRenderProcessHost::WidgetHidden() { 139 void MockRenderProcessHost::WidgetHidden() {
140 } 140 }
141 141
142 int MockRenderProcessHost::VisibleWidgetCount() const { 142 int MockRenderProcessHost::VisibleWidgetCount() const {
143 return 1; 143 return 1;
144 } 144 }
145 145
146 void MockRenderProcessHost::AudioStateChanged() {} 146 void MockRenderProcessHost::AudioStateChanged() {
147 if (!audio_state_changed_callback_.is_null())
148 audio_state_changed_callback_.Run();
149 }
147 150
148 bool MockRenderProcessHost::IsForGuestsOnly() const { 151 bool MockRenderProcessHost::IsForGuestsOnly() const {
149 return is_for_guests_only_; 152 return is_for_guests_only_;
150 } 153 }
151 154
152 StoragePartition* MockRenderProcessHost::GetStoragePartition() const { 155 StoragePartition* MockRenderProcessHost::GetStoragePartition() const {
153 return BrowserContext::GetDefaultStoragePartition(browser_context_); 156 return BrowserContext::GetDefaultStoragePartition(browser_context_);
154 } 157 }
155 158
156 void MockRenderProcessHost::AddWord(const base::string16& word) { 159 void MockRenderProcessHost::AddWord(const base::string16& word) {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 399 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
397 it != processes_.end(); ++it) { 400 it != processes_.end(); ++it) {
398 if (*it == host) { 401 if (*it == host) {
399 processes_.weak_erase(it); 402 processes_.weak_erase(it);
400 break; 403 break;
401 } 404 }
402 } 405 }
403 } 406 }
404 407
405 } // namespace content 408 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698