Index: chrome/browser/media/encrypted_media_istypesupported_browsertest.cc |
diff --git a/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc b/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc |
index 4ffde6fa247f44ce9cd2751f7b1e675f68de9e6d..3e7dc6c1a9a696ec2fd51b0612ff62fe26306f0e 100644 |
--- a/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc |
+++ b/chrome/browser/media/encrypted_media_istypesupported_browsertest.cc |
@@ -17,6 +17,7 @@ |
#include "chrome/test/base/ui_test_utils.h" |
#include "content/public/common/content_switches.h" |
#include "content/public/test/browser_test_utils.h" |
+#include "media/base/test_data_util.h" |
#include "url/gurl.h" |
#include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. |
@@ -224,9 +225,10 @@ class EncryptedMediaIsTypeSupportedTest : public InProcessBrowserTest { |
// Load the test page needed. IsConcreteSupportedKeySystem() needs some |
// JavaScript and a video loaded in order to work. |
if (!is_test_page_loaded_) { |
- ASSERT_TRUE(test_server()->Start()); |
- GURL gurl = test_server()->GetURL( |
- "files/media/test_key_system_instantiation.html"); |
+ scoped_ptr<net::SpawnedTestServer> http_test_server = |
+ media::StartMediaHttpTestServer(); |
+ GURL gurl = http_test_server->GetURL( |
+ "files/test_key_system_instantiation.html"); |
ui_test_utils::NavigateToURL(browser(), gurl); |
is_test_page_loaded_ = true; |
} |