OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 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 |
| 5 #include "base/command_line.h" |
| 6 #include "base/test/launcher/unit_test_launcher.h" |
| 7 #include "base/test/test_suite.h" |
| 8 #include "gpu/vulkan/vulkan_surface.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 |
| 11 namespace { |
| 12 |
| 13 int RunHelper(base::TestSuite* testSuite) { |
| 14 const bool success = gpu::VulkanSurface::InitializeOneOff(); |
| 15 DCHECK(success); |
| 16 return testSuite->Run(); |
| 17 } |
| 18 |
| 19 } // namespace |
| 20 |
| 21 int main(int argc, char** argv) { |
| 22 base::TestSuite test_suite(argc, argv); |
| 23 base::CommandLine::Init(argc, argv); |
| 24 testing::InitGoogleMock(&argc, argv); |
| 25 return base::LaunchUnitTestsSerially( |
| 26 argc, argv, base::Bind(&RunHelper, base::Unretained(&test_suite))); |
| 27 } |
OLD | NEW |