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

Unified Diff: ios/chrome/browser/tabs/tab_model_unittest.mm

Issue 2732063003: Add unittests checking that old saved session can be restored. (Closed)
Patch Set: Rebase and document -performSaveToDirectoryInBackground:. Created 3 years, 9 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/tabs/tab_model_unittest.mm
diff --git a/ios/chrome/browser/tabs/tab_model_unittest.mm b/ios/chrome/browser/tabs/tab_model_unittest.mm
index 2fe10d7221417490241fe76ac0ec2f8a367d40bf..0daca89108d458404bd474ec3f3e6870d66f1f4b 100644
--- a/ios/chrome/browser/tabs/tab_model_unittest.mm
+++ b/ios/chrome/browser/tabs/tab_model_unittest.mm
@@ -41,17 +41,6 @@
using web::WebStateImpl;
-// For some of the unit tests, we need to make sure the session is saved
-// immediately so we can read it back in to verify various attributes. This
-// is not a situation we normally expect to be in because we never
-// want the session being saved on the main thread in the production app.
-// We could expose this as part of the service's public API, but again that
-// might encourage use where we don't want it. As a result, just use the
-// known private-for-testing method directly.
-@interface SessionServiceIOS (Testing)
-- (void)performSaveWindow:(SessionWindowIOS*)window
- toDirectory:(NSString*)directory;
-@end
@interface TabModel (VisibleForTesting)
- (SessionWindowIOS*)windowForSavingSession;
« no previous file with comments | « ios/chrome/browser/sessions/session_service_unittest.mm ('k') | ios/chrome/test/data/sessions/session_m57.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698