1 /* 2 * Copyright 2018 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #include <algorithm> 9 #include <iostream> 10 #include <string> 11 #include <vector> 12 13 #include "tests/Test.h" 14 #include "tests/TestHarness.h" 15 CurrentTestHarness()16TestHarness CurrentTestHarness() { 17 return TestHarness::kListGpuUnitTests; 18 } 19 main()20int main() { 21 std::vector<std::string> tests; 22 for (const skiatest::Test& test : skiatest::TestRegistry::Range()) { 23 if (test.fNeedsGpu) { 24 tests.push_back(std::string(test.fName)); 25 } 26 } 27 std::sort(tests.begin(), tests.end()); 28 for (const std::string& test : tests) { 29 std::cout << test << '\n'; 30 } 31 } 32