OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/test/launcher/unit_test_launcher.h" | 6 #include "base/test/launcher/unit_test_launcher.h" |
7 #include "base/test/test_suite.h" | 7 #include "base/test/test_suite.h" |
8 #include "gpu/vulkan/vulkan_surface.h" | 8 #include "gpu/vulkan/vulkan_implementation.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 int RunHelper(base::TestSuite* testSuite) { | 13 int RunHelper(base::TestSuite* testSuite) { |
14 const bool success = gpu::VulkanSurface::InitializeOneOff(); | 14 const bool success = gpu::InitializeVulkan(); |
15 DCHECK(success); | 15 DCHECK(success); |
16 return testSuite->Run(); | 16 return testSuite->Run(); |
17 } | 17 } |
18 | 18 |
19 } // namespace | 19 } // namespace |
20 | 20 |
21 int main(int argc, char** argv) { | 21 int main(int argc, char** argv) { |
22 base::TestSuite test_suite(argc, argv); | 22 base::TestSuite test_suite(argc, argv); |
23 base::CommandLine::Init(argc, argv); | 23 base::CommandLine::Init(argc, argv); |
24 testing::InitGoogleMock(&argc, argv); | 24 testing::InitGoogleMock(&argc, argv); |
25 return base::LaunchUnitTestsSerially( | 25 return base::LaunchUnitTestsSerially( |
26 argc, argv, base::Bind(&RunHelper, base::Unretained(&test_suite))); | 26 argc, argv, base::Bind(&RunHelper, base::Unretained(&test_suite))); |
27 } | 27 } |
OLD | NEW |