| // 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_BROWSER_SESSIONS_TEST_SESSION_SERVICE_H_ |
| #define IOS_CHROME_BROWSER_SESSIONS_TEST_SESSION_SERVICE_H_ |
| |
| #import <Foundation/Foundation.h> |
| |
| #import "ios/chrome/browser/sessions/session_service_ios.h" |
| |
| // Testing subclass of SessionService that immediately consumes session windows |
| // passed to -saveSessionWindow:sessionPath:immediately: is consumed immediately |
| // but only saved to disk if |performIO| is set to YES.. |
| @interface TestSessionService : SessionServiceIOS |
| |
| // If YES, then sessions are saved to disk, otherwise, data is discarded. |
| @property(nonatomic, assign) BOOL performIO; |
| |
| @end |
| |
| #endif // IOS_CHROME_BROWSER_SESSIONS_TEST_SESSION_SERVICE_H_ |