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

Unified Diff: media/base/gmock_callback_support.h

Issue 2352253002: Added MediaSourceState unit test. (Closed)
Patch Set: Return OnNewConfigs cb result from the AppendData helper Created 4 years, 3 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: media/base/gmock_callback_support.h
diff --git a/media/base/gmock_callback_support.h b/media/base/gmock_callback_support.h
index 22f4c10ad4f352f922baee36be27e8890c6dfe36..a172dd2925e42fbbe1c9e532968d4a2fcab7fc9d 100644
--- a/media/base/gmock_callback_support.h
+++ b/media/base/gmock_callback_support.h
@@ -28,6 +28,10 @@ ACTION_TEMPLATE(RunClosure,
::std::tr1::get<k>(args).Run();
}
+ACTION_P(RunClosure, closure) {
+ closure.Run();
+}
+
// Various overloads for RunCallback<N>().
//
// The RunCallback<N>(p1, p2, ..., p_k) action invokes Run() method on the N-th

Powered by Google App Engine
This is Rietveld 408576698