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

Unified Diff: media/base/test_helpers.h

Issue 2914603002: Replace deprecated base::NonThreadSafe in media in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | media/base/test_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/test_helpers.h
diff --git a/media/base/test_helpers.h b/media/base/test_helpers.h
index afad1f739615a65d2fc4572b2ccf6b190d7c4d12..b7e8815a4f850a0e82e2affad14c739d3b58636a 100644
--- a/media/base/test_helpers.h
+++ b/media/base/test_helpers.h
@@ -11,8 +11,8 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/sequence_checker.h"
#include "base/strings/string_number_conversions.h"
-#include "base/threading/non_thread_safe.h"
#include "media/base/audio_parameters.h"
#include "media/base/channel_layout.h"
#include "media/base/media_log.h"
@@ -41,7 +41,7 @@ PipelineStatusCB NewExpectedStatusCB(PipelineStatus status);
// testing classes that run on more than a single thread.
//
// Events are intended for single use and cannot be reset.
-class WaitableMessageLoopEvent : public base::NonThreadSafe {
+class WaitableMessageLoopEvent {
public:
WaitableMessageLoopEvent();
explicit WaitableMessageLoopEvent(base::TimeDelta timeout);
@@ -73,6 +73,8 @@ class WaitableMessageLoopEvent : public base::NonThreadSafe {
std::unique_ptr<base::RunLoop> run_loop_;
const base::TimeDelta timeout_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(WaitableMessageLoopEvent);
};
« no previous file with comments | « no previous file | media/base/test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698