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

Unified Diff: ios/chrome/app/tests_hook.h

Issue 2557613004: [ios] Adds test hooks to enable/disable functionality while testing. (Closed)
Patch Set: Created 4 years 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 | « ios/chrome/app/tests_fake_hook.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/tests_hook.h
diff --git a/ios/chrome/app/tests_hook.h b/ios/chrome/app/tests_hook.h
new file mode 100644
index 0000000000000000000000000000000000000000..3a63b9392c095a54e1a7fe5c79ca6f3b37641d97
--- /dev/null
+++ b/ios/chrome/app/tests_hook.h
@@ -0,0 +1,36 @@
+// Copyright 2016 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 IOS_CHROME_APP_TESTS_HOOK_H_
+#define IOS_CHROME_APP_TESTS_HOOK_H_
+
+namespace tests_hook {
+
+// Returns true if contextual search should be disabled to allow other tests
+// to run unimpeded.
+bool DisableContextualSearch();
+
+// Returns true if the first_run path should be disabled to allow other tests to
+// run unimpeded.
+bool DisableFirstRun();
+
+// Returns true if the signin recall promo should be disabled to allow other
+// tests to run unimpeded.
+bool DisableSigninRecallPromo();
+
+// Returns true if the update service should be disabled so that the update
+// infobar won't be shown during testing.
+bool DisableUpdateService();
+
+// Global integration tests setup. This is not used by EarlGrey-based
+// integration tests.
+void SetUpTestsIfPresent();
+
+// Runs the integration tests. This is not used by EarlGrey-based integration
+// tests.
+void RunTestsIfPresent();
+
+} // namespace tests_hook
+
+#endif // IOS_CHROME_APP_TESTS_HOOK_H_
« no previous file with comments | « ios/chrome/app/tests_fake_hook.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698