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.
|
|
|
|
|
2015-01-31 05:41:36 +01:00
|
|
|
#include "tests/cefclient/browser/client_app_browser.h"
|
|
|
|
#include "tests/cefclient/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.
|
2015-01-23 20:09:34 +01:00
|
|
|
extern void CreateFrameBrowserTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
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.
|
2015-01-23 20:09:34 +01:00
|
|
|
extern void CreateNavigationBrowserTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
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.
|
|
|
|
extern void CreatePluginBrowserTests(
|
|
|
|
ClientAppBrowser::DelegateSet& delegates);
|
|
|
|
CreatePluginBrowserTests(delegates);
|
|
|
|
|
2015-10-03 01:03:16 +02:00
|
|
|
// Bring in the preference tests.
|
|
|
|
extern void CreatePreferenceBrowserTests(
|
|
|
|
ClientAppBrowser::DelegateSet& delegates);
|
|
|
|
CreatePreferenceBrowserTests(delegates);
|
|
|
|
|
2013-09-16 17:26:08 +02:00
|
|
|
// Bring in the RequestHandler tests.
|
2015-01-23 20:09:34 +01:00
|
|
|
extern void CreateRequestHandlerBrowserTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
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.
|
2015-01-23 20:09:34 +01:00
|
|
|
extern void CreateV8BrowserTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
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.
|
2015-01-23 20:09:34 +01:00
|
|
|
extern void CreateFrameRendererTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
ClientAppRenderer::DelegateSet& delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
CreateFrameRendererTests(delegates);
|
|
|
|
|
|
|
|
// Bring in the DOM tests.
|
2015-01-23 20:09:34 +01:00
|
|
|
extern void CreateDOMRendererTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
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.
|
|
|
|
extern void CreateMessageRouterRendererTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
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.
|
2015-01-23 20:09:34 +01:00
|
|
|
extern void CreateNavigationRendererTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
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.
|
|
|
|
extern void CreateProcessMessageRendererTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
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.
|
2015-01-23 20:09:34 +01:00
|
|
|
extern void CreateRequestHandlerRendererTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
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 Request tests.
|
2015-01-23 20:09:34 +01:00
|
|
|
extern void CreateRequestRendererTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
ClientAppRenderer::DelegateSet& delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
CreateRequestRendererTests(delegates);
|
|
|
|
|
|
|
|
// Bring in the routing test handler delegate.
|
|
|
|
extern void CreateRoutingTestHandlerDelegate(
|
2015-01-31 05:41:36 +01:00
|
|
|
ClientAppRenderer::DelegateSet& delegates);
|
2014-09-24 17:38:11 +02:00
|
|
|
CreateRoutingTestHandlerDelegate(delegates);
|
2012-06-19 18:29:49 +02:00
|
|
|
|
|
|
|
// Bring in the URLRequest tests.
|
2015-01-23 20:09:34 +01:00
|
|
|
extern void CreateURLRequestRendererTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
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.
|
2015-01-23 20:09:34 +01:00
|
|
|
extern void CreateV8RendererTests(
|
2015-01-31 05:41:36 +01:00
|
|
|
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
|
|
|
|
2015-01-23 20:09:34 +01:00
|
|
|
void RegisterCustomSchemes(
|
2012-06-19 18:29:49 +02:00
|
|
|
CefRefPtr<CefSchemeRegistrar> registrar,
|
|
|
|
std::vector<CefString>& cookiable_schemes) {
|
2012-04-24 20:01:48 +02:00
|
|
|
// Bring in the scheme handler tests.
|
|
|
|
extern void RegisterSchemeHandlerCustomSchemes(
|
2012-06-19 18:29:49 +02:00
|
|
|
CefRefPtr<CefSchemeRegistrar> registrar,
|
|
|
|
std::vector<CefString>& cookiable_schemes);
|
|
|
|
RegisterSchemeHandlerCustomSchemes(registrar, cookiable_schemes);
|
2012-04-24 20:01:48 +02:00
|
|
|
|
|
|
|
// Bring in the cookie tests.
|
|
|
|
extern void RegisterCookieCustomSchemes(
|
2012-06-19 18:29:49 +02:00
|
|
|
CefRefPtr<CefSchemeRegistrar> registrar,
|
|
|
|
std::vector<CefString>& cookiable_schemes);
|
|
|
|
RegisterCookieCustomSchemes(registrar, cookiable_schemes);
|
|
|
|
|
|
|
|
// Bring in the URLRequest tests.
|
|
|
|
extern void RegisterURLRequestCustomSchemes(
|
|
|
|
CefRefPtr<CefSchemeRegistrar> registrar,
|
|
|
|
std::vector<CefString>& cookiable_schemes);
|
|
|
|
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(
|
|
|
|
CefRefPtr<CefSchemeRegistrar> registrar,
|
|
|
|
std::vector<CefString>& cookiable_schemes) {
|
|
|
|
::RegisterCustomSchemes(registrar, cookiable_schemes);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace client
|
|
|
|
|