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

Unified Diff: base/test/run_hook_ios.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, 10 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
Index: base/test/run_hook_ios.h
diff --git a/base/test/run_hook_ios.h b/base/test/run_hook_ios.h
new file mode 100644
index 0000000000000000000000000000000000000000..e7b28957d29e467e5f60e4745621577800e5be54
--- /dev/null
+++ b/base/test/run_hook_ios.h
@@ -0,0 +1,22 @@
+// Copyright 2013 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.
+
+#ifndef BASE_TEST_RUN_HOOK_IOS_H_
+#define BASE_TEST_RUN_HOOK_IOS_H_
+
+#include "base/basictypes.h"
+#include "base/test/test_suite.h"
+#include "build/build_config.h"
+
+// Provides a way of running code before gtest-based apps invoke
+// TestSuite::Run.
+class RunHook {
+ public:
+ static void Init(base::TestSuite* suite, int argc, char* argv[]);
+ static void RunTestsFromApp();
+ private:
+ DISALLOW_COPY_AND_ASSIGN(RunHook);
+};
+
+#endif // BASE_TEST_RUN_HOOK_IOS_H_

Powered by Google App Engine
This is Rietveld 408576698