| Index: ios/web_view/test/observers/boolean_observer.h
|
| diff --git a/ios/web_view/test/observers/boolean_observer.h b/ios/web_view/test/observers/boolean_observer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3823b21347f8c0b4be4934daa0d3022899c87ff8
|
| --- /dev/null
|
| +++ b/ios/web_view/test/observers/boolean_observer.h
|
| @@ -0,0 +1,20 @@
|
| +// 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_WEB_VIEW_TEST_OBSERVERS_BOOLEAN_OBSERVER_H_
|
| +#define IOS_WEB_VIEW_TEST_OBSERVERS_BOOLEAN_OBSERVER_H_
|
| +
|
| +#import "ios/web_view/test/observers/observer.h"
|
| +
|
| +// A specialized Observer for listening to a boolean property of an object.
|
| +@interface BooleanObserver : Observer
|
| +
|
| +// The last value of performing |keyPath| on |object| after being notified of a
|
| +// KVO value change or null if a change has not been observed. If |lastValue| is
|
| +// nonnull it will be a NSNumber wrapped BOOL.
|
| +@property(nonatomic, nullable, readonly) NSNumber* lastValue;
|
| +
|
| +@end
|
| +
|
| +#endif // IOS_WEB_VIEW_TEST_OBSERVERS_BOOLEAN_OBSERVER_H_
|
|
|