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

Side by Side Diff: media/cast/logging/receiver_time_offset_estimator_impl_unittest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <stdint.h>
6
5 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
6 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
7 #include "base/test/simple_test_tick_clock.h" 9 #include "base/test/simple_test_tick_clock.h"
8 #include "base/time/tick_clock.h" 10 #include "base/time/tick_clock.h"
9 #include "media/cast/cast_environment.h" 11 #include "media/cast/cast_environment.h"
10 #include "media/cast/logging/logging_defines.h" 12 #include "media/cast/logging/logging_defines.h"
11 #include "media/cast/logging/receiver_time_offset_estimator_impl.h" 13 #include "media/cast/logging/receiver_time_offset_estimator_impl.h"
12 #include "media/cast/test/fake_single_thread_task_runner.h" 14 #include "media/cast/test/fake_single_thread_task_runner.h"
13 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
14 16
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 int64_t lower_bound_ms = lower_bound.InMilliseconds(); 392 int64_t lower_bound_ms = lower_bound.InMilliseconds();
391 int64_t upper_bound_ms = upper_bound.InMilliseconds(); 393 int64_t upper_bound_ms = upper_bound.InMilliseconds();
392 EXPECT_GT(lower_bound_ms, 90); 394 EXPECT_GT(lower_bound_ms, 90);
393 EXPECT_LE(lower_bound_ms, true_offset_ms); 395 EXPECT_LE(lower_bound_ms, true_offset_ms);
394 EXPECT_LT(upper_bound_ms, 150); 396 EXPECT_LT(upper_bound_ms, 150);
395 EXPECT_GT(upper_bound_ms, true_offset_ms); 397 EXPECT_GT(upper_bound_ms, true_offset_ms);
396 } 398 }
397 399
398 } // namespace cast 400 } // namespace cast
399 } // namespace media 401 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/logging/receiver_time_offset_estimator_impl.h ('k') | media/cast/logging/serialize_deserialize_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698