1 // Copyright 2017 The Chromium Authors 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/functional/bind.h" 6 #include "base/test/launcher/unit_test_launcher.h" 7 #include "base/test/test_suite.h" 8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "third_party/boringssl/src/crypto/test/gtest_main.h" 10 11 namespace { 12 13 class BoringSSLTestSuite : public base::TestSuite { 14 public: BoringSSLTestSuite(int argc,char ** argv)15 BoringSSLTestSuite(int argc, char** argv) : TestSuite(argc, argv) {} 16 Initialize()17 void Initialize() override { 18 TestSuite::Initialize(); 19 bssl::SetupGoogleTest(); 20 } 21 }; 22 23 } // namespace 24 main(int argc,char ** argv)25int main(int argc, char** argv) { 26 BoringSSLTestSuite test_suite(argc, argv); 27 return base::LaunchUnitTests( 28 argc, argv, 29 base::BindOnce(&BoringSSLTestSuite::Run, base::Unretained(&test_suite))); 30 } 31