1 // 2 // Copyright 2015 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 // angle_deqp_gtest_main: 7 // Entry point for standalone dEQP tests. 8 9 #include <gtest/gtest.h> 10 11 #include "test_utils/runner/TestSuite.h" 12 13 // Defined in angle_deqp_gtest.cpp. Declared here so we don't need to make a header that we import 14 // in Chromium. 15 namespace angle 16 { 17 void InitTestHarness(int *argc, char **argv); 18 } // namespace angle 19 main(int argc,char ** argv)20int main(int argc, char **argv) 21 { 22 #if defined(ANGLE_PLATFORM_MACOS) 23 // By default, we should hook file API functions on macOS to avoid slow Metal shader caching 24 // file access. 25 angle::InitMetalFileAPIHooking(argc, argv); 26 #endif 27 28 angle::InitTestHarness(&argc, argv); 29 angle::TestSuite testSuite(&argc, argv); 30 return testSuite.run(); 31 } 32