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

Unified Diff: components/copresence/handlers/audio/audio_directive_list.cc

Issue 670623002: Change base::TickClock to a ref counted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: y 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/copresence/handlers/audio/audio_directive_list.h ('k') | components/copresence/timed_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/copresence/handlers/audio/audio_directive_list.cc
diff --git a/components/copresence/handlers/audio/audio_directive_list.cc b/components/copresence/handlers/audio/audio_directive_list.cc
index 8b9b76ec21d1945b9955ea17bba27e41e8b892c1..7d64971ee16bf12c45c1292713ffa47c78295afa 100644
--- a/components/copresence/handlers/audio/audio_directive_list.cc
+++ b/components/copresence/handlers/audio/audio_directive_list.cc
@@ -75,6 +75,13 @@ scoped_ptr<AudioDirective> AudioDirectiveList::GetActiveDirective() {
return make_scoped_ptr(new AudioDirective(active_directives_.front()));
}
+void AudioDirectiveList::set_clock_for_testing(
+ const scoped_refptr<base::TickClock>& clock) {
+ clock_ = clock;
+}
+
+// Private methods.
+
std::vector<AudioDirective>::iterator AudioDirectiveList::FindDirectiveByOpId(
const std::string& op_id) {
for (std::vector<AudioDirective>::iterator it = active_directives_.begin();
« no previous file with comments | « components/copresence/handlers/audio/audio_directive_list.h ('k') | components/copresence/timed_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698