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) {
|
2014-09-24 17:38:11 +02:00
|
|
|
// Bring in the Frame tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateFrameBrowserTests(ClientAppBrowser::DelegateSet &
|
|
|
|
delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
CreateFrameBrowserTests(delegates);
|
2012-11-20 21:08:36 +01:00
|
|
|
|
|
|
|
// Bring in the Navigation tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateNavigationBrowserTests(ClientAppBrowser::DelegateSet &
|
|
|
|
delegates);
|
2012-11-20 21:08:36 +01:00
|
|
|
CreateNavigationBrowserTests(delegates);
|
2013-09-16 17:26:08 +02:00
|
|
|
|
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);
|
|
|
|
|
2013-09-16 17:26:08 +02:00
|
|
|
// Bring in the RequestHandler tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateRequestHandlerBrowserTests(ClientAppBrowser::DelegateSet &
|
|
|
|
delegates);
|
2013-09-16 17:26:08 +02:00
|
|
|
CreateRequestHandlerBrowserTests(delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
|
|
|
|
// Bring in the V8 tests.
|
2017-05-17 11:29:28 +02:00
|
|
|
extern void CreateV8BrowserTests(ClientAppBrowser::DelegateSet & delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
CreateV8BrowserTests(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
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void RegisterCustomSchemes(CefRawPtr<CefSchemeRegistrar> registrar,
|
|
|
|
std::vector<CefString>& cookiable_schemes) {
|
2012-04-24 20:01:48 +02:00
|
|
|
// Bring in the scheme handler tests.
|
|
|
|
extern void RegisterSchemeHandlerCustomSchemes(
|
2017-02-07 22:25:11 +01:00
|
|
|
CefRawPtr<CefSchemeRegistrar> registrar,
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefString> & cookiable_schemes);
|
2012-06-19 18:29:49 +02:00
|
|
|
RegisterSchemeHandlerCustomSchemes(registrar, cookiable_schemes);
|
2012-04-24 20:01:48 +02:00
|
|
|
|
|
|
|
// Bring in the cookie tests.
|
|
|
|
extern void RegisterCookieCustomSchemes(
|
2017-02-07 22:25:11 +01:00
|
|
|
CefRawPtr<CefSchemeRegistrar> registrar,
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefString> & cookiable_schemes);
|
2012-06-19 18:29:49 +02:00
|
|
|
RegisterCookieCustomSchemes(registrar, cookiable_schemes);
|
|
|
|
|
|
|
|
// Bring in the URLRequest tests.
|
|
|
|
extern void RegisterURLRequestCustomSchemes(
|
2017-02-07 22:25:11 +01:00
|
|
|
CefRawPtr<CefSchemeRegistrar> registrar,
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefString> & cookiable_schemes);
|
2012-06-19 18:29:49 +02:00
|
|
|
RegisterURLRequestCustomSchemes(registrar, cookiable_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);
|
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
2015-01-31 05:41:36 +01:00
|
|
|
CefRefPtr<CefPrintHandler> ClientAppBrowser::CreatePrintHandler() {
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
|
|
|
void ClientAppRenderer::CreateDelegates(DelegateSet& delegates) {
|
2015-01-23 20:09:34 +01:00
|
|
|
::CreateRenderDelegates(delegates);
|
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
|
|
|
void ClientApp::RegisterCustomSchemes(
|
2017-02-07 22:25:11 +01:00
|
|
|
CefRawPtr<CefSchemeRegistrar> registrar,
|
2015-01-23 20:09:34 +01:00
|
|
|
std::vector<CefString>& cookiable_schemes) {
|
|
|
|
::RegisterCustomSchemes(registrar, cookiable_schemes);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace client
|