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

Side by Side Diff: content/browser/media/encrypted_media_browsertest.cc

Issue 629963002: Replacing the OVERRIDE with override and FINAL with final in content/browser/media (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "base/win/windows_version.h" 7 #include "base/win/windows_version.h"
8 #include "content/browser/media/media_browsertest.h" 8 #include "content/browser/media/media_browsertest.h"
9 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 #include "content/public/test/browser_test_utils.h" 10 #include "content/public/test/browser_test_utils.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 RunEncryptedMediaTest(kDefaultEmePlayer, 117 RunEncryptedMediaTest(kDefaultEmePlayer,
118 media_file, 118 media_file,
119 media_type, 119 media_type,
120 key_system, 120 key_system,
121 src_type, 121 src_type,
122 kEnded); 122 kEnded);
123 } 123 }
124 124
125 protected: 125 protected:
126 // We want to fail quickly when a test fails because an error is encountered. 126 // We want to fail quickly when a test fails because an error is encountered.
127 virtual void AddWaitForTitles(content::TitleWatcher* title_watcher) OVERRIDE { 127 virtual void AddWaitForTitles(content::TitleWatcher* title_watcher) override {
128 MediaBrowserTest::AddWaitForTitles(title_watcher); 128 MediaBrowserTest::AddWaitForTitles(title_watcher);
129 title_watcher->AlsoWaitForTitle(base::ASCIIToUTF16(kEmeNotSupportedError)); 129 title_watcher->AlsoWaitForTitle(base::ASCIIToUTF16(kEmeNotSupportedError));
130 title_watcher->AlsoWaitForTitle(base::ASCIIToUTF16(kEmeKeyError)); 130 title_watcher->AlsoWaitForTitle(base::ASCIIToUTF16(kEmeKeyError));
131 } 131 }
132 132
133 #if defined(OS_ANDROID) 133 #if defined(OS_ANDROID)
134 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 134 virtual void SetUpCommandLine(CommandLine* command_line) override {
135 command_line->AppendSwitch( 135 command_line->AppendSwitch(
136 switches::kDisableGestureRequirementForMediaPlayback); 136 switches::kDisableGestureRequirementForMediaPlayback);
137 } 137 }
138 #endif 138 #endif
139 }; 139 };
140 140
141 using ::testing::Combine; 141 using ::testing::Combine;
142 using ::testing::Values; 142 using ::testing::Values;
143 143
144 #if !defined(OS_ANDROID) 144 #if !defined(OS_ANDROID)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, UnknownKeySystemThrowsException) { 186 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, UnknownKeySystemThrowsException) {
187 RunEncryptedMediaTest(kDefaultEmePlayer, 187 RunEncryptedMediaTest(kDefaultEmePlayer,
188 "bear-a_enc-a.webm", 188 "bear-a_enc-a.webm",
189 kWebMAudioOnly, 189 kWebMAudioOnly,
190 "com.example.foo", 190 "com.example.foo",
191 MSE, 191 MSE,
192 kEmeNotSupportedError); 192 kEmeNotSupportedError);
193 } 193 }
194 194
195 } // namespace content 195 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/cdm/browser_cdm_manager.h ('k') | content/browser/media/media_canplaytype_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698