Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: gpu/vulkan/tests/vulkan_tests_main.cc

Issue 1892303003: Added the Vulkan Context Provider implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Export VulkanContextProvider Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_widget.cc ('k') | gpu/vulkan/vulkan_implementation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | gpu/vulkan/vulkan_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698