Update to Chromium version 76.0.3809.0 (#665002)

OSR tests will be fixed by a follow-up merge of Viz support (see issue #2575).
This commit is contained in:
Petra Öhlin
2019-07-16 13:59:21 -04:00
committed by Marshall Greenblatt
parent 5892ffc382
commit cc0db5f166
124 changed files with 1312 additions and 1416 deletions

View File

@@ -6,6 +6,9 @@
#include "include/wrapper/cef_closure_task.h"
#include "tests/ceftests/test_handler.h"
#include "tests/gtest/include/gtest/gtest.h"
#include "tests/shared/browser/client_app_browser.h"
using client::ClientAppBrowser;
namespace {
@@ -800,6 +803,22 @@ const char kTestHtml[] =
"x5+fm5nB6slBlZ3Fcha363d5ut7u3ni1rLoPf728l3KcK\" allow=\"autoplay\" "
"style=\"display:none\"></iframe></body></html>";
class AudioOutputTest : public ClientAppBrowser::Delegate {
public:
AudioOutputTest() {}
void OnBeforeCommandLineProcessing(
CefRefPtr<ClientAppBrowser> app,
CefRefPtr<CefCommandLine> command_line) override {
// Allow media to autoplay without requiring user interaction.
command_line->AppendSwitchWithValue("autoplay-policy",
"no-user-gesture-required");
}
protected:
IMPLEMENT_REFCOUNTING(AudioOutputTest);
};
// a common base class for audio output tests
class AudioOutputTestHandler : public TestHandler, public CefAudioHandler {
public:
@@ -893,3 +912,9 @@ TEST(AudioOutputTest, AudioOutputTest) {
handler->ExecuteTest();
ReleaseAndWaitForDestructor(handler);
}
// Entry point for creating audio output test objects.
// Called from client_app_delegates.cc.
void CreateAudioOutputTests(ClientAppBrowser::DelegateSet& delegates) {
delegates.insert(new AudioOutputTest);
}