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

Side by Side Diff: chromecast/media/base/media_resource_tracker_unittest.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 Created 4 years, 8 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chromecast/media/base/media_resource_tracker.h" 5 #include "chromecast/media/base/media_resource_tracker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/scoped_ptr.h"
9 #include "base/run_loop.h" 10 #include "base/run_loop.h"
10 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
11 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
12 #include "base/task_runner.h" 13 #include "base/task_runner.h"
13 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
14 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 17
17 namespace chromecast { 18 namespace chromecast {
18 namespace media { 19 namespace media {
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 EXPECT_CALL(*test_mocks_, OnStopUsingMedia()).Times(0); 248 EXPECT_CALL(*test_mocks_, OnStopUsingMedia()).Times(0);
248 249
249 DecrementMediaUsageCount(); 250 DecrementMediaUsageCount();
250 251
251 RunUntilIdle(media_task_runner_.get()); 252 RunUntilIdle(media_task_runner_.get());
252 base::RunLoop().RunUntilIdle(); 253 base::RunLoop().RunUntilIdle();
253 } 254 }
254 255
255 } // namespace media 256 } // namespace media
256 } // namespace chromecast 257 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/media/base/media_message_loop.h ('k') | chromecast/media/cma/decoder/cast_audio_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698