| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "content/browser/renderer_host/media/video_capture_oracle.h" | 5 #include "content/browser/media/capture/video_capture_oracle.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 void SteadyStateSampleAndAdvance(base::TimeDelta vsync, | 14 void SteadyStateSampleAndAdvance(base::TimeDelta vsync, |
| 15 SmoothEventSampler* sampler, | 15 SmoothEventSampler* sampler, |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 { false, 0 }, { true, 16.72 }, { true, 33.44 }, { false, 0 }, | 478 { false, 0 }, { true, 16.72 }, { true, 33.44 }, { false, 0 }, |
| 479 { true, 33.441 }, { false, 16.72 }, { true, 16.72 }, { true, 50.16 } | 479 { true, 33.441 }, { false, 16.72 }, { true, 16.72 }, { true, 50.16 } |
| 480 }; | 480 }; |
| 481 | 481 |
| 482 SmoothEventSampler sampler(base::TimeDelta::FromSeconds(1) / 30, true, 3); | 482 SmoothEventSampler sampler(base::TimeDelta::FromSeconds(1) / 30, true, 3); |
| 483 ReplayCheckingSamplerDecisions(data_points, arraysize(data_points), &sampler); | 483 ReplayCheckingSamplerDecisions(data_points, arraysize(data_points), &sampler); |
| 484 } | 484 } |
| 485 | 485 |
| 486 } // namespace | 486 } // namespace |
| 487 } // namespace content | 487 } // namespace content |
| OLD | NEW |