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

Side by Side Diff: ios/web/test/crw_fake_web_controller_observer.h

Issue 2567303003: [ios] Removed unused CRWWebControllerObserver methods. (Closed)
Patch Set: Self review 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_TEST_CRW_FAKE_WEB_CONTROLLER_OBSERVER_H_ 5 #ifndef IOS_WEB_TEST_CRW_FAKE_WEB_CONTROLLER_OBSERVER_H_
6 #define IOS_WEB_TEST_CRW_FAKE_WEB_CONTROLLER_OBSERVER_H_ 6 #define IOS_WEB_TEST_CRW_FAKE_WEB_CONTROLLER_OBSERVER_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include "base/memory/scoped_vector.h"
11 #import "ios/web/public/web_state/crw_web_controller_observer.h" 10 #import "ios/web/public/web_state/crw_web_controller_observer.h"
12 11
13 namespace base {
14 class DictionaryValue;
15 }
16
17 // Fake CRWWebControllerObserver. An OCMock is not used because it cannot handle
18 // C++ types without ugly workarounds, e.g. OCMockComplexTypeHelper/onSelector,
19 // that effectively employ a 'fake' pattern anyway.
20 // WCO uses C++ types (e.g. GURL, DictionaryValue) extensively.
21 @interface CRWFakeWebControllerObserver : NSObject<CRWWebControllerObserver> 12 @interface CRWFakeWebControllerObserver : NSObject<CRWWebControllerObserver>
22 13
23 // Designated initializer. Returns a CRWWebControllerObserver that claims
24 // commands with the prefix |commandPrefix|. |commandPrefix| cannot be nil.
25 - (instancetype)initWithCommandPrefix:(NSString*)commandPrefix;
26
27 // YES if the page has loaded. 14 // YES if the page has loaded.
28 @property(nonatomic, readonly) BOOL pageLoaded; 15 @property(nonatomic, readonly) BOOL pageLoaded;
29 16
30 // The list of commands that have been received and saved.
31 - (ScopedVector<base::DictionaryValue>&)commandsReceived;
32
33 @end 17 @end
34 18
35 #endif // IOS_WEB_TEST_CRW_FAKE_WEB_CONTROLLER_OBSERVER_H_ 19 #endif // IOS_WEB_TEST_CRW_FAKE_WEB_CONTROLLER_OBSERVER_H_
OLDNEW
« no previous file with comments | « ios/web/public/web_state/crw_web_controller_observer.h ('k') | ios/web/test/crw_fake_web_controller_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698