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

Unified Diff: base/test/main_hook.h

Issue 10690161: Make it possible to run gtests on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@presubmit_change
Patch Set: Code review feedback addressed. Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/base.gyp ('k') | base/test/main_hook.cc » ('j') | base/test/main_hook.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/main_hook.h
diff --git a/base/test/main_hook.h b/base/test/main_hook.h
new file mode 100644
index 0000000000000000000000000000000000000000..0abd690e90a0c511fefd3d0cc19eb8f3e51b66f0
--- /dev/null
+++ b/base/test/main_hook.h
@@ -0,0 +1,16 @@
+// 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:
stuartmorgan 2012/07/12 10:59:23 Blank line before private:
leng 2012/07/12 11:17:31 Done.
+ DISALLOW_COPY_AND_ASSIGN(MainHook);
+};
« no previous file with comments | « base/base.gyp ('k') | base/test/main_hook.cc » ('j') | base/test/main_hook.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698