| // Copyright 2019 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_UI_READING_LIST_READING_LIST_APP_INTERFACE_H_ |
| #define IOS_CHROME_BROWSER_UI_READING_LIST_READING_LIST_APP_INTERFACE_H_ |
| |
| #import <Foundation/Foundation.h> |
| #import <UIKit/UIKit.h> |
| |
| #include "base/compiler_specific.h" |
| |
| // ReadingListAppInterface contains the app-side |
| // implementation for helpers. These helpers are compiled into |
| // the app binary and can be called from either app or test code. |
| @interface ReadingListAppInterface : NSObject |
| |
| // Removes all entries in the ReadingListModel. |
| + (NSError*)clearEntries WARN_UNUSED_RESULT; |
| |
| // Adds an entry in the ReadingListModel. |
| + (NSError*)addEntryWithURL:(NSURL*)url |
| title:(NSString*)title |
| read:(BOOL)read WARN_UNUSED_RESULT; |
| |
| // The number of read entries in the ReadingListModel. |
| + (NSInteger)readEntriesCount; |
| |
| // The number of unread entries in the ReadingListModel. |
| + (NSInteger)unreadEntriesCount; |
| |
| // Simulate that the current connection is WiFI. |
| + (void)forceConnectionToWifi; |
| |
| // Sends a notification that connection is WiFi. |
| + (void)notifyWifiConnection; |
| |
| // Reset the connection type. |
| + (void)resetConnectionType; |
| |
| @end |
| |
| #endif // IOS_CHROME_BROWSER_UI_READING_LIST_READING_LIST_APP_INTERFACE_H_ |