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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp

Issue 2967013002: Be explicit about namespace testing to not mix it with blink::testing (Closed)
Patch Set: Dropped mojo parts that need another review. Created 3 years, 5 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698