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

Side by Side Diff: media/cast/test/sender.cc

Issue 145873006: ui/base/resource: Roll our own version of ReadBigEndian() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « media/cast/rtp_receiver/rtp_receiver.cc ('k') | media/cast/transport/rtcp/rtcp_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Test application that simulates a cast sender - Data can be either generated 5 // Test application that simulates a cast sender - Data can be either generated
6 // or read from a file. 6 // or read from a file.
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "base/time/default_tick_clock.h" 13 #include "base/time/default_tick_clock.h"
14 #include "media/base/video_frame.h" 14 #include "media/base/video_frame.h"
15 #include "media/cast/cast_config.h" 15 #include "media/cast/cast_config.h"
16 #include "media/cast/cast_environment.h" 16 #include "media/cast/cast_environment.h"
17 #include "media/cast/cast_sender.h" 17 #include "media/cast/cast_sender.h"
18 #include "media/cast/logging/encoding_event_subscriber.h" 18 #include "media/cast/logging/encoding_event_subscriber.h"
19 #include "media/cast/logging/log_serializer.h" 19 #include "media/cast/logging/log_serializer.h"
20 #include "media/cast/logging/logging_defines.h" 20 #include "media/cast/logging/logging_defines.h"
21 #include "media/cast/logging/proto/raw_events.pb.h" 21 #include "media/cast/logging/proto/raw_events.pb.h"
22 #include "media/cast/test/utility/audio_utility.h" 22 #include "media/cast/test/utility/audio_utility.h"
23 #include "media/cast/test/utility/input_builder.h" 23 #include "media/cast/test/utility/input_builder.h"
24 #include "media/cast/test/utility/video_utility.h" 24 #include "media/cast/test/utility/video_utility.h"
25 #include "media/cast/transport/cast_transport_defines.h" 25 #include "media/cast/transport/cast_transport_defines.h"
26 #include "media/cast/transport/cast_transport_sender.h" 26 #include "media/cast/transport/cast_transport_sender.h"
27 #include "media/cast/transport/transport/udp_transport.h" 27 #include "media/cast/transport/transport/udp_transport.h"
28 #include "net/base/big_endian.h"
29 #include "ui/gfx/size.h" 28 #include "ui/gfx/size.h"
30 29
31 namespace media { 30 namespace media {
32 namespace cast { 31 namespace cast {
33 // Settings chosen to match default receiver settings. 32 // Settings chosen to match default receiver settings.
34 #define DEFAULT_RECEIVER_PORT "2344" 33 #define DEFAULT_RECEIVER_PORT "2344"
35 #define DEFAULT_RECEIVER_IP "127.0.0.1" 34 #define DEFAULT_RECEIVER_IP "127.0.0.1"
36 #define DEFAULT_READ_FROM_FILE "0" 35 #define DEFAULT_READ_FROM_FILE "0"
37 #define DEFAULT_AUDIO_SENDER_SSRC "1" 36 #define DEFAULT_AUDIO_SENDER_SSRC "1"
38 #define DEFAULT_AUDIO_RECEIVER_SSRC "2" 37 #define DEFAULT_AUDIO_RECEIVER_SSRC "2"
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 494
496 test_thread.message_loop_proxy()->PostTask( 495 test_thread.message_loop_proxy()->PostTask(
497 FROM_HERE, 496 FROM_HERE,
498 base::Bind(&media::cast::SendProcess::SendFrame, 497 base::Bind(&media::cast::SendProcess::SendFrame,
499 base::Unretained(send_process.get()))); 498 base::Unretained(send_process.get())));
500 499
501 io_message_loop.Run(); 500 io_message_loop.Run();
502 501
503 return 0; 502 return 0;
504 } 503 }
OLDNEW
« no previous file with comments | « media/cast/rtp_receiver/rtp_receiver.cc ('k') | media/cast/transport/rtcp/rtcp_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698