| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "modules/webaudio/BaseAudioContext.h" | 5 #include "modules/webaudio/BaseAudioContext.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/V8BindingForCore.h" | 7 #include "bindings/core/v8/V8BindingForCore.h" |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/dom/UserGestureIndicator.h" | 9 #include "core/dom/UserGestureIndicator.h" |
| 10 #include "core/frame/FrameOwner.h" | 10 #include "core/frame/FrameOwner.h" |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 kAutoplayMetric, AutoplayStatus::kAutoplayStatusSucceeded, 1); | 726 kAutoplayMetric, AutoplayStatus::kAutoplayStatusSucceeded, 1); |
| 727 histogram_tester.ExpectTotalCount(kAutoplayMetric, 1); | 727 histogram_tester.ExpectTotalCount(kAutoplayMetric, 1); |
| 728 histogram_tester.ExpectTotalCount(kAutoplayCrossOriginMetric, 0); | 728 histogram_tester.ExpectTotalCount(kAutoplayCrossOriginMetric, 0); |
| 729 break; | 729 break; |
| 730 } | 730 } |
| 731 } | 731 } |
| 732 | 732 |
| 733 INSTANTIATE_TEST_CASE_P( | 733 INSTANTIATE_TEST_CASE_P( |
| 734 BaseAudioContextAutoplayTest, | 734 BaseAudioContextAutoplayTest, |
| 735 BaseAudioContextAutoplayTest, | 735 BaseAudioContextAutoplayTest, |
| 736 testing::Values(AutoplayPolicy::Type::kNoUserGestureRequired, | 736 ::testing::Values(AutoplayPolicy::Type::kNoUserGestureRequired, |
| 737 AutoplayPolicy::Type::kUserGestureRequired, | 737 AutoplayPolicy::Type::kUserGestureRequired, |
| 738 AutoplayPolicy::Type::kUserGestureRequiredForCrossOrigin, | 738 AutoplayPolicy::Type::kUserGestureRequiredForCrossOrigin, |
| 739 AutoplayPolicy::Type::kDocumentUserActivationRequired)); | 739 AutoplayPolicy::Type::kDocumentUserActivationRequired)); |
| 740 | 740 |
| 741 } // namespace blink | 741 } // namespace blink |
| OLD | NEW |