summaryrefslogtreecommitdiffstats
path: root/base/test/main_hook.h
blob: 46b71cee911b98c9fe71411309d844d07a540d39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "build/build_config.h"
#include "base/basictypes.h"

// Provides a way of running code before gtest-based tests with access to
// argv and argc.
class MainHook {
 public:
  typedef int (*MainType)(int, char*[]);
  MainHook(MainType main_func, int argc, char* argv[]);

 private:
  DISALLOW_COPY_AND_ASSIGN(MainHook);
};