Tom Sepez | 64ee2c3 | 2017-04-24 15:04:25 -0700 | [diff] [blame] | 1 | // Copyright 2017 PDFium 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. |
| 4 | |
| 5 | #include "core/fxcrt/fx_memory.h" |
| 6 | #include "testing/gmock/include/gmock/gmock.h" |
| 7 | #include "testing/gtest/include/gtest/gtest.h" |
| 8 | |
| 9 | // Can't use gtest-provided main since we need to initialize partition |
| 10 | // alloc before invoking any test. |
| 11 | int main(int argc, char** argv) { |
| 12 | FXMEM_InitalizePartitionAlloc(); |
| 13 | testing::InitGoogleTest(&argc, argv); |
| 14 | testing::InitGoogleMock(&argc, argv); |
| 15 | return RUN_ALL_TESTS(); |
| 16 | } |