leveldb_unittest_main.cc 723 B

12345678910111213141516171819202122
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file. See the AUTHORS file for names of contributors.
  4. #include "base/command_line.h"
  5. #include "base/test/task_environment.h"
  6. #include "base/test/test_timeouts.h"
  7. #include "testing/gmock/include/gmock/gmock.h"
  8. #include "testing/gtest/include/gtest/gtest.h"
  9. int main(int argc, char** argv) {
  10. testing::InitGoogleTest(&argc, argv);
  11. testing::InitGoogleMock(&argc, argv);
  12. // Chromium's leveldb::Env uses PostTask.
  13. base::CommandLine::Init(argc, argv);
  14. TestTimeouts::Initialize();
  15. base::test::TaskEnvironment task_environment;
  16. return RUN_ALL_TESTS();
  17. }