Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: base/test/main_hook.h

Issue 12321117: Refactor MainHook into TestSuite. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing test_suite changes Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698