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..f81f630619faebb16d7c1fce40f312fd0ec54a6d |
--- /dev/null |
+++ b/base/test/main_hook.h |
@@ -0,0 +1,20 @@ |
+// 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" |
+ |
+class MainHook { |
stuartmorgan
2012/07/12 09:36:31
Needs a class level comment (just explaining that
leng
2012/07/12 10:44:42
Done.
|
+public: |
stuartmorgan
2012/07/12 09:36:31
Indent 1
leng
2012/07/12 10:44:42
Done.
|
+ typedef int (*MainType)(int, char*[]); |
+ MainHook(MainType main_func, int argc, char* argv[]) |
+#if !defined(OS_IOS) |
stuartmorgan
2012/07/12 09:36:31
While it seems a bit silly, I think it would proba
leng
2012/07/12 10:44:42
Done.
|
+ {} |
+#else |
+ ; |
+#endif |
+private: |
stuartmorgan
2012/07/12 09:36:31
Indent 1
leng
2012/07/12 10:44:42
Done.
|
+ DISALLOW_COPY_AND_ASSIGN(MainHook); |
+}; |
+ |