tests/cefclient/browser/window_test.cc
// Create the appropriate platform test runner object.
Create the appropriate platform test runner object.
Create the appropriate platform test runner object .
std::unique_ptr<WindowTestRunner> CreateWindowTestRunner() {
#if defined(OS_WIN) || defined(OS_LINUX)
  if (MainContext::Get()->UseViews())
    return std::make_unique<WindowTestRunnerViews>();
#endif
#if defined(OS_WIN)
  return std::make_unique<WindowTestRunnerWin>();
#elif defined(OS_LINUX)
  return std::make_unique<WindowTestRunnerGtk>();
#elif defined(OS_MAC)
  return std::make_unique<WindowTestRunnerMac>();
#else
#error "No implementation available for your platform."
#endif
}
std :: unique_ptr < WindowTestRunner > CreateWindowTestRunner ( ) { #if defined ( OS_WIN ) || defined ( OS_LINUX ) if ( MainContext :: Get ( ) -> UseViews ( ) ) return std :: make_unique < WindowTestRunnerViews > ( ) ; #endif #if defined ( OS_WIN ) return std :: make_unique < WindowTestRunnerWin > ( ) ; #elif defined ( OS_LINUX ) return std :: make_unique < WindowTestRunnerGtk > ( ) ; #elif defined ( OS_MAC ) return std :: make_unique < WindowTestRunnerMac > ( ) ; #else #error  "No implementation available for your platform." #endif }
Create the appropriate platform test runner object.
Create the appropriate platform test runner object .