diff --git a/cef1/tests/unittests/run_all_unittests.cc b/cef1/tests/unittests/run_all_unittests.cc index aec7aa3df..af5eaa2fd 100644 --- a/cef1/tests/unittests/run_all_unittests.cc +++ b/cef1/tests/unittests/run_all_unittests.cc @@ -9,6 +9,19 @@ #include "base/command_line.h" #include "base/threading/thread.h" +static void OnRegisterCustomSchemes( + CefRefPtr registrar) OVERRIDE { + // Bring in the scheme handler tests. + extern void RegisterSchemeHandlerCustomSchemes( + CefRefPtr registrar); + RegisterSchemeHandlerCustomSchemes(registrar); + + // Bring in the cookie tests. + extern void RegisterCookieCustomSchemes( + CefRefPtr registrar); + RegisterCookieCustomSchemes(registrar); +} + namespace { // Thread used to run the test suite. @@ -46,15 +59,7 @@ class ClientApp : public CefApp { virtual void OnRegisterCustomSchemes( CefRefPtr registrar) OVERRIDE { - // Bring in the scheme handler tests. - extern void RegisterSchemeHandlerCustomSchemes( - CefRefPtr registrar); - RegisterSchemeHandlerCustomSchemes(registrar); - - // Bring in the cookie tests. - extern void RegisterCookieCustomSchemes( - CefRefPtr registrar); - RegisterCookieCustomSchemes(registrar); + ::OnRegisterCustomSchemes(registrar); } protected: