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

Unified Diff: ios/chrome/browser/metrics/tab_usage_recorder_test_util.h

Issue 2836403002: Move testEvictedTabReloadFailure to an external URL egtest target. (Closed)
Patch Set: Feedback Created 3 years, 8 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: ios/chrome/browser/metrics/tab_usage_recorder_test_util.h
diff --git a/ios/chrome/browser/metrics/tab_usage_recorder_test_util.h b/ios/chrome/browser/metrics/tab_usage_recorder_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..a84b5948516c034f1f4df505ea4dc6d01e74dce4
--- /dev/null
+++ b/ios/chrome/browser/metrics/tab_usage_recorder_test_util.h
@@ -0,0 +1,19 @@
+// Copyright 2017 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_BROWSER_METRICS_TAB_USAGE_RECORDER_TEST_UTIL_H_
+#define IOS_CHROME_BROWSER_METRICS_TAB_USAGE_RECORDER_TEST_UTIL_H_
+
+namespace tab_usage_recorder_test_util {
+
+// Opens a new incognito tab using the UI and evicts any main tab model tabs.
+void OpenNewIncognitoTabUsingUIAndEvictMainTabs();
+
+// Switches to normal mode using swith button (iPad) or stack view (iPhone).
+// Assumes current mode is Incognito.
+void SwitchToNormalMode();
+
+} // namespace tab_usage_recorder_test_util
+
+#endif // IOS_CHROME_BROWSER_METRICS_TAB_USAGE_RECORDER_TEST_UTIL_H_
« no previous file with comments | « ios/chrome/browser/metrics/tab_usage_recorder_egtest.mm ('k') | ios/chrome/browser/metrics/tab_usage_recorder_test_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698