2012-04-12 22:21:50 +02:00
|
|
|
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2016-11-18 00:52:42 +01:00
|
|
|
#include "tests/shared/browser/client_app_browser.h"
|
|
|
|
#include "tests/shared/renderer/client_app_renderer.h"
|
2012-04-12 22:21:50 +02:00
|
|
|
|
2015-01-31 05:41:36 +01:00
|
|
|
using client::ClientAppBrowser;
|
|
|
|
using client::ClientAppRenderer;
|
2015-01-23 20:09:34 +01:00
|
|
|
|
2015-01-31 05:41:36 +01:00
|
|
|
void CreateBrowserDelegates(ClientAppBrowser::DelegateSet& delegates) {
|
2020-05-01 20:18:18 +02:00
|
|
|
// Bring in audio output tests.
|
|
|
|
extern void CreateAudioOutputTests(ClientAppBrowser::DelegateSet & delegates);
|
|
|
|
CreateAudioOutputTests(delegates);
|
|
|
|
|
2021-04-05 20:49:17 +02:00
|
|
|
// Bring in the plugin tests.
|
|
|
|
extern void CreateCorsBrowserTests(ClientAppBrowser::DelegateSet & delegates);
|
|
|
|
CreateCorsBrowserTests(delegates);
|
|
|
|
|
2015-09-09 16:05:39 +02:00
|
|
|
// Bring in the plugin tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreatePluginBrowserTests(ClientAppBrowser::DelegateSet &
|
|
|
|
delegates);
|
2015-09-09 16:05:39 +02:00
|
|
|
CreatePluginBrowserTests(delegates);
|
|
|
|
|
2015-10-03 01:03:16 +02:00
|
|
|
// Bring in the preference tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreatePreferenceBrowserTests(ClientAppBrowser::DelegateSet &
|
|
|
|
delegates);
|
2015-10-03 01:03:16 +02:00
|
|
|
CreatePreferenceBrowserTests(delegates);
|
2020-09-25 03:40:47 +02:00
|
|
|
|
|
|
|
// Bring in URLRequest tests.
|
|
|
|
extern void CreateURLRequestBrowserTests(ClientAppBrowser::DelegateSet &
|
|
|
|
delegates);
|
|
|
|
CreateURLRequestBrowserTests(delegates);
|
2012-09-28 19:11:10 +02:00
|
|
|
}
|
|
|
|
|
2015-01-31 05:41:36 +01:00
|
|
|
void CreateRenderDelegates(ClientAppRenderer::DelegateSet& delegates) {
|
2014-09-24 17:38:11 +02:00
|
|
|
// Bring in the Frame tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateFrameRendererTests(ClientAppRenderer::DelegateSet &
|
|
|
|
delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
CreateFrameRendererTests(delegates);
|
|
|
|
|
|
|
|
// Bring in the DOM tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateDOMRendererTests(ClientAppRenderer::DelegateSet &
|
|
|
|
delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
CreateDOMRendererTests(delegates);
|
2014-01-28 00:31:03 +01:00
|
|
|
|
|
|
|
// Bring in the message router tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateMessageRouterRendererTests(ClientAppRenderer::DelegateSet &
|
|
|
|
delegates);
|
2014-01-28 00:31:03 +01:00
|
|
|
CreateMessageRouterRendererTests(delegates);
|
|
|
|
|
2014-09-24 17:38:11 +02:00
|
|
|
// Bring in the Navigation tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateNavigationRendererTests(ClientAppRenderer::DelegateSet &
|
|
|
|
delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
CreateNavigationRendererTests(delegates);
|
|
|
|
|
2012-04-12 22:21:50 +02:00
|
|
|
// Bring in the process message tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateProcessMessageRendererTests(ClientAppRenderer::DelegateSet &
|
|
|
|
delegates);
|
2012-04-12 22:21:50 +02:00
|
|
|
CreateProcessMessageRendererTests(delegates);
|
|
|
|
|
2014-09-24 17:38:11 +02:00
|
|
|
// Bring in the RequestHandler tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateRequestHandlerRendererTests(ClientAppRenderer::DelegateSet &
|
|
|
|
delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
CreateRequestHandlerRendererTests(delegates);
|
2012-04-27 23:19:06 +02:00
|
|
|
|
2014-09-24 17:38:11 +02:00
|
|
|
// Bring in the routing test handler delegate.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateRoutingTestHandlerDelegate(ClientAppRenderer::DelegateSet &
|
|
|
|
delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
CreateRoutingTestHandlerDelegate(delegates);
|
2012-06-19 18:29:49 +02:00
|
|
|
|
2016-11-12 00:22:53 +01:00
|
|
|
// Bring in the thread tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateThreadRendererTests(ClientAppRenderer::DelegateSet &
|
|
|
|
delegates);
|
2016-11-12 00:22:53 +01:00
|
|
|
CreateThreadRendererTests(delegates);
|
|
|
|
|
2012-06-19 18:29:49 +02:00
|
|
|
// Bring in the URLRequest tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateURLRequestRendererTests(ClientAppRenderer::DelegateSet &
|
|
|
|
delegates);
|
2012-06-19 18:29:49 +02:00
|
|
|
CreateURLRequestRendererTests(delegates);
|
2012-11-09 19:47:09 +01:00
|
|
|
|
2014-09-24 17:38:11 +02:00
|
|
|
// Bring in the V8 tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateV8RendererTests(ClientAppRenderer::DelegateSet & delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
CreateV8RendererTests(delegates);
|
2012-04-12 22:21:50 +02:00
|
|
|
}
|
2012-04-24 20:01:48 +02:00
|
|
|
|
2021-04-09 20:34:45 +02:00
|
|
|
void RegisterCustomSchemes(CefRawPtr<CefSchemeRegistrar> registrar) {
|
2012-04-24 20:01:48 +02:00
|
|
|
// Bring in the scheme handler tests.
|
|
|
|
extern void RegisterSchemeHandlerCustomSchemes(
|
2021-04-09 20:34:45 +02:00
|
|
|
CefRawPtr<CefSchemeRegistrar> registrar);
|
|
|
|
RegisterSchemeHandlerCustomSchemes(registrar);
|
2012-04-24 20:01:48 +02:00
|
|
|
|
|
|
|
// Bring in the cookie tests.
|
|
|
|
extern void RegisterCookieCustomSchemes(
|
2021-04-09 20:34:45 +02:00
|
|
|
CefRawPtr<CefSchemeRegistrar> registrar);
|
|
|
|
RegisterCookieCustomSchemes(registrar);
|
2012-06-19 18:29:49 +02:00
|
|
|
|
|
|
|
// Bring in the URLRequest tests.
|
|
|
|
extern void RegisterURLRequestCustomSchemes(
|
2021-04-09 20:34:45 +02:00
|
|
|
CefRawPtr<CefSchemeRegistrar> registrar);
|
|
|
|
RegisterURLRequestCustomSchemes(registrar);
|
2019-04-24 04:50:25 +02:00
|
|
|
|
|
|
|
// Bring in the resource request handler tests.
|
|
|
|
extern void RegisterResourceRequestHandlerCustomSchemes(
|
2021-04-09 20:34:45 +02:00
|
|
|
CefRawPtr<CefSchemeRegistrar> registrar);
|
|
|
|
RegisterResourceRequestHandlerCustomSchemes(registrar);
|
|
|
|
}
|
|
|
|
|
|
|
|
void RegisterCookieableSchemes(std::vector<std::string>& cookieable_schemes) {
|
|
|
|
// Bring in the scheme handler tests.
|
|
|
|
extern void RegisterSchemeHandlerCookieableSchemes(std::vector<std::string> &
|
|
|
|
cookieable_schemes);
|
|
|
|
RegisterSchemeHandlerCookieableSchemes(cookieable_schemes);
|
|
|
|
|
|
|
|
// Bring in the cookie tests.
|
|
|
|
extern void RegisterCookieCookieableSchemes(std::vector<std::string> &
|
|
|
|
cookieable_schemes);
|
|
|
|
RegisterCookieCookieableSchemes(cookieable_schemes);
|
|
|
|
|
|
|
|
// Bring in the URLRequest tests.
|
|
|
|
extern void RegisterURLRequestCookieableSchemes(std::vector<std::string> &
|
|
|
|
cookieable_schemes);
|
|
|
|
RegisterURLRequestCookieableSchemes(cookieable_schemes);
|
2012-04-24 20:01:48 +02:00
|
|
|
}
|
2014-07-10 17:41:30 +02:00
|
|
|
|
2015-01-23 20:09:34 +01:00
|
|
|
namespace client {
|
|
|
|
|
|
|
|
// static
|
2015-01-31 05:41:36 +01:00
|
|
|
void ClientAppBrowser::CreateDelegates(DelegateSet& delegates) {
|
2015-01-23 20:09:34 +01:00
|
|
|
::CreateBrowserDelegates(delegates);
|
|
|
|
}
|
|
|
|
|
2015-01-31 05:41:36 +01:00
|
|
|
// static
|
|
|
|
void ClientAppRenderer::CreateDelegates(DelegateSet& delegates) {
|
2015-01-23 20:09:34 +01:00
|
|
|
::CreateRenderDelegates(delegates);
|
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
2021-04-09 20:34:45 +02:00
|
|
|
void ClientApp::RegisterCustomSchemes(CefRawPtr<CefSchemeRegistrar> registrar) {
|
|
|
|
::RegisterCustomSchemes(registrar);
|
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
|
|
|
void ClientAppBrowser::RegisterCookieableSchemes(
|
|
|
|
std::vector<std::string>& cookieable_schemes) {
|
|
|
|
::RegisterCookieableSchemes(cookieable_schemes);
|
2015-01-23 20:09:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace client
|