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

Unified Diff: chrome/browser/media/encrypted_media_browsertest.cc

Issue 2857323002: Enable IO when starting the license server (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/encrypted_media_browsertest.cc
diff --git a/chrome/browser/media/encrypted_media_browsertest.cc b/chrome/browser/media/encrypted_media_browsertest.cc
index 45ba85c7a7411345c8db045c764240c7c27c0ac8..0ae729c81b14b7294de714bd10877ce3255a3a61 100644
--- a/chrome/browser/media/encrypted_media_browsertest.cc
+++ b/chrome/browser/media/encrypted_media_browsertest.cc
@@ -9,6 +9,7 @@
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/threading/thread_restrictions.h"
#include "build/build_config.h"
#include "chrome/browser/media/media_browsertest.h"
#include "chrome/browser/media/test_license_server.h"
@@ -221,7 +222,10 @@ class EncryptedMediaTestBase : public MediaBrowserTest {
if (!config)
return;
license_server_.reset(new TestLicenseServer(std::move(config)));
- EXPECT_TRUE(license_server_->Start());
+ {
+ base::ThreadRestrictions::ScopedAllowIO allow_io;
+ EXPECT_TRUE(license_server_->Start());
+ }
query_params->push_back(
std::make_pair("licenseServerURL", license_server_->GetServerURL()));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698