summaryrefslogtreecommitdiffstats
path: root/media/cast/logging/stats_event_subscriber_unittest.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-31 08:56:26 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-31 08:56:26 +0000
commitc610119714732d73115bad82059d0390f64545d2 (patch)
tree905be7171c05c548ca82f0074ea4ec4121c32fe6 /media/cast/logging/stats_event_subscriber_unittest.cc
parentcf1aa5c43e37a364de49651adc09725c3961ea08 (diff)
downloadchromium_src-c610119714732d73115bad82059d0390f64545d2.zip
chromium_src-c610119714732d73115bad82059d0390f64545d2.tar.gz
chromium_src-c610119714732d73115bad82059d0390f64545d2.tar.bz2
Cast: Build cast targets with GN
Most files and targets are compiling and built, except those that depend on libvpx. Adding source sets for: * cast:common * cast:net * cast:sender * cast:receiver * cast:test_support Added executables: * cast:cast_unittests * cast:udp_proxy * cast:generate_timecode_audio * cast:generate_timebar_video Review URL: https://codereview.chromium.org/404323002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast/logging/stats_event_subscriber_unittest.cc')
-rw-r--r--media/cast/logging/stats_event_subscriber_unittest.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/media/cast/logging/stats_event_subscriber_unittest.cc b/media/cast/logging/stats_event_subscriber_unittest.cc
index 33faa02..09c418b 100644
--- a/media/cast/logging/stats_event_subscriber_unittest.cc
+++ b/media/cast/logging/stats_event_subscriber_unittest.cc
@@ -91,7 +91,7 @@ TEST_F(StatsEventSubscriberTest, Capture) {
StatsEventSubscriber::StatsMap::iterator it =
stats_map.find(StatsEventSubscriber::CAPTURE_FPS);
- ASSERT_NE(it, stats_map.end());
+ ASSERT_TRUE(it != stats_map.end());
base::TimeDelta duration = end_time - start_time;
EXPECT_DOUBLE_EQ(
@@ -131,7 +131,7 @@ TEST_F(StatsEventSubscriberTest, Encode) {
StatsEventSubscriber::StatsMap::iterator it =
stats_map.find(StatsEventSubscriber::ENCODE_FPS);
- ASSERT_NE(it, stats_map.end());
+ ASSERT_TRUE(it != stats_map.end());
base::TimeDelta duration = end_time - start_time;
EXPECT_DOUBLE_EQ(
@@ -139,7 +139,7 @@ TEST_F(StatsEventSubscriberTest, Encode) {
static_cast<double>(num_frames) / duration.InMillisecondsF() * 1000);
it = stats_map.find(StatsEventSubscriber::ENCODE_KBPS);
- ASSERT_NE(it, stats_map.end());
+ ASSERT_TRUE(it != stats_map.end());
EXPECT_DOUBLE_EQ(it->second,
static_cast<double>(total_size) / duration.InMillisecondsF() * 8);
@@ -170,7 +170,7 @@ TEST_F(StatsEventSubscriberTest, Decode) {
StatsEventSubscriber::StatsMap::iterator it =
stats_map.find(StatsEventSubscriber::DECODE_FPS);
- ASSERT_NE(it, stats_map.end());
+ ASSERT_TRUE(it != stats_map.end());
base::TimeDelta duration = end_time - start_time;
EXPECT_DOUBLE_EQ(
@@ -207,7 +207,7 @@ TEST_F(StatsEventSubscriberTest, PlayoutDelay) {
StatsEventSubscriber::StatsMap::iterator it =
stats_map.find(StatsEventSubscriber::AVG_PLAYOUT_DELAY_MS);
- ASSERT_NE(it, stats_map.end());
+ ASSERT_TRUE(it != stats_map.end());
EXPECT_DOUBLE_EQ(
it->second, static_cast<double>(total_delay_ms) / num_frames);
@@ -252,7 +252,7 @@ TEST_F(StatsEventSubscriberTest, E2ELatency) {
StatsEventSubscriber::StatsMap::iterator it =
stats_map.find(StatsEventSubscriber::AVG_E2E_LATENCY_MS);
- ASSERT_NE(it, stats_map.end());
+ ASSERT_TRUE(it != stats_map.end());
EXPECT_DOUBLE_EQ(
it->second, total_latency.InMillisecondsF() / num_frames);
@@ -370,27 +370,27 @@ TEST_F(StatsEventSubscriberTest, Packets) {
// and PACKET_LOSS_FRACTION.
StatsEventSubscriber::StatsMap::iterator it =
stats_map.find(StatsEventSubscriber::AVG_NETWORK_LATENCY_MS);
- ASSERT_NE(it, stats_map.end());
+ ASSERT_TRUE(it != stats_map.end());
EXPECT_DOUBLE_EQ(
it->second,
total_latency.InMillisecondsF() / num_latency_recorded_packets);
it = stats_map.find(StatsEventSubscriber::TRANSMISSION_KBPS);
- ASSERT_NE(it, stats_map.end());
+ ASSERT_TRUE(it != stats_map.end());
EXPECT_DOUBLE_EQ(it->second,
static_cast<double>(total_size) / duration.InMillisecondsF() * 8);
it = stats_map.find(StatsEventSubscriber::RETRANSMISSION_KBPS);
- ASSERT_NE(it, stats_map.end());
+ ASSERT_TRUE(it != stats_map.end());
EXPECT_DOUBLE_EQ(it->second,
static_cast<double>(retransmit_total_size) /
duration.InMillisecondsF() * 8);
it = stats_map.find(StatsEventSubscriber::PACKET_LOSS_FRACTION);
- ASSERT_NE(it, stats_map.end());
+ ASSERT_TRUE(it != stats_map.end());
EXPECT_DOUBLE_EQ(
it->second,