Avi Drissman | 505076bc | 2022-10-06 21:15:30 | [diff] [blame^] | 1 | // Copyright 2022 The Chromium Authors |
Victor Costan | d4993a7 | 2022-01-04 17:53:19 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
Avi Drissman | 505076bc | 2022-10-06 21:15:30 | [diff] [blame^] | 3 | // found in the LICENSE file. |
Victor Costan | d4993a7 | 2022-01-04 17:53:19 | [diff] [blame] | 4 | |
| 5 | #include "base/command_line.h" |
| 6 | #include "base/test/task_environment.h" |
| 7 | #include "base/test/test_timeouts.h" |
| 8 | #include "testing/gmock/include/gmock/gmock.h" |
| 9 | #include "testing/gtest/include/gtest/gtest.h" |
| 10 | |
| 11 | int main(int argc, char** argv) { |
| 12 | testing::InitGoogleTest(&argc, argv); |
| 13 | testing::InitGoogleMock(&argc, argv); |
| 14 | |
| 15 | // Chromium's leveldb::Env uses PostTask. |
| 16 | base::CommandLine::Init(argc, argv); |
| 17 | TestTimeouts::Initialize(); |
| 18 | base::test::TaskEnvironment task_environment; |
| 19 | |
| 20 | return RUN_ALL_TESTS(); |
| 21 | } |