webview_tests.cc 1.0 KB

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "base/base_switches.h"
  5. #include "base/command_line.h"
  6. #include "base/test/allow_check_is_test_to_be_called.h"
  7. #include "base/test/test_suite.h"
  8. #include "content/public/common/content_switches.h"
  9. #include "mojo/core/embedder/embedder.h"
  10. #include "ui/gl/gl_surface.h"
  11. #include "ui/gl/test/gl_surface_test_support.h"
  12. int main(int argc, char** argv) {
  13. base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
  14. command_line->AppendSwitch(switches::kSingleProcess);
  15. command_line->AppendSwitchASCII(switches::kDisableFeatures, ",Vulkan");
  16. command_line->AppendSwitchASCII(switches::kEnableFeatures,
  17. ",WebViewNewInvalidateHeuristic");
  18. gl::GLSurfaceTestSupport::InitializeNoExtensionsOneOff();
  19. base::test::AllowCheckIsTestToBeCalled();
  20. base::TestSuite test_suite(argc, argv);
  21. mojo::core::Init();
  22. return test_suite.Run();
  23. }