OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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. |
| 4 |
| 5 #include "build/build_config.h" |
| 6 #include "base/basictypes.h" |
| 7 |
| 8 // Provides a way of running code before gtest-based tests with access to |
| 9 // argv and argc. |
| 10 class MainHook { |
| 11 public: |
| 12 typedef int (*MainType)(int, char*[]); |
| 13 MainHook(MainType main_func, int argc, char* argv[]); |
| 14 |
| 15 private: |
| 16 DISALLOW_COPY_AND_ASSIGN(MainHook); |
| 17 }; |
OLD | NEW |