| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 "media/capture/content/video_capture_oracle.h" | 5 #include "device/capture/content/video_capture_oracle.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 base::TimeTicks InitialTestTimeTicks() { | 14 base::TimeTicks InitialTestTimeTicks() { |
| 15 return base::TimeTicks() + base::TimeDelta::FromSeconds(1); | 15 return base::TimeTicks() + base::TimeDelta::FromSeconds(1); |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 ASSERT_TRUE(oracle.ObserveEventAndDecideCapture( | 610 ASSERT_TRUE(oracle.ObserveEventAndDecideCapture( |
| 611 VideoCaptureOracle::kCompositorUpdate, gfx::Rect(), t)); | 611 VideoCaptureOracle::kCompositorUpdate, gfx::Rect(), t)); |
| 612 ASSERT_EQ(Get720pSize(), oracle.capture_size()); | 612 ASSERT_EQ(Get720pSize(), oracle.capture_size()); |
| 613 base::TimeTicks ignored; | 613 base::TimeTicks ignored; |
| 614 ASSERT_TRUE( | 614 ASSERT_TRUE( |
| 615 oracle.CompleteCapture(oracle.RecordCapture(2.0), true, &ignored)); | 615 oracle.CompleteCapture(oracle.RecordCapture(2.0), true, &ignored)); |
| 616 } | 616 } |
| 617 } | 617 } |
| 618 | 618 |
| 619 } // namespace media | 619 } // namespace media |
| OLD | NEW |