| OLD | NEW |
| 1 // Copyright (c) 2015 PDFium Authors. All rights reserved. | 1 // Copyright (c) 2015 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "embedder_test.h" | 5 #include "embedder_test.h" |
| 6 | 6 |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 int icon) { | 333 int icon) { |
| 334 EmbedderTest* test = static_cast<EmbedderTest*>(platform); | 334 EmbedderTest* test = static_cast<EmbedderTest*>(platform); |
| 335 return test->delegate_->Alert(message, title, type, icon); | 335 return test->delegate_->Alert(message, title, type, icon); |
| 336 } | 336 } |
| 337 | 337 |
| 338 // Can't use gtest-provided main since we need to stash the path to the | 338 // Can't use gtest-provided main since we need to stash the path to the |
| 339 // executable in order to find the external V8 binary data files. | 339 // executable in order to find the external V8 binary data files. |
| 340 int main(int argc, char** argv) { | 340 int main(int argc, char** argv) { |
| 341 g_exe_path_ = argv[0]; | 341 g_exe_path_ = argv[0]; |
| 342 testing::InitGoogleTest(&argc, argv); | 342 testing::InitGoogleTest(&argc, argv); |
| 343 testing::InitGoogleMock(&argc, argv); |
| 343 return RUN_ALL_TESTS(); | 344 return RUN_ALL_TESTS(); |
| 344 } | 345 } |
| OLD | NEW |