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

Unified Diff: media/cast/test/utility/udp_proxy.h

Issue 289083002: Cast: Add tests for clocks being slow/fast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added missing files Created 6 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
Index: media/cast/test/utility/udp_proxy.h
diff --git a/media/cast/test/utility/udp_proxy.h b/media/cast/test/utility/udp_proxy.h
index 9dce0cfa4356e318b034d98448aeca34ae51c4ca..f08dd5ab29be814646b521b122cb38e9cbd35a18 100644
--- a/media/cast/test/utility/udp_proxy.h
+++ b/media/cast/test/utility/udp_proxy.h
@@ -18,6 +18,10 @@ namespace net {
class NetLog;
};
+namespace base {
+class TickClock;
+};
+
namespace media {
namespace cast {
namespace test {
@@ -29,12 +33,14 @@ class PacketPipe {
virtual void Send(scoped_ptr<transport::Packet> packet) = 0;
// Allows injection of fake test runner for testing.
virtual void InitOnIOThread(
- const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
+ base::TickClock* clock);
virtual void AppendToPipe(scoped_ptr<PacketPipe> pipe);
protected:
scoped_ptr<PacketPipe> pipe_;
// Allows injection of fake task runner for testing.
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+ base::TickClock* clock_;
Alpha Left Google 2014/05/15 22:21:24 Please have a short comment like: "// Not owned.".
hubbe 2014/05/16 04:31:10 Done.
};
// A UDPProxy will set up a UDP socket and bind to |local_port|.

Powered by Google App Engine
This is Rietveld 408576698