blob: d76922c9e254b1c3c33bf980f92b49722f6ca6d5 [file] [log] [blame]
// Copyright 2016 The Chromium Authors
// 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_SETTINGS_UTILS_FAKE_OBSERVABLE_BOOLEAN_H_
#define IOS_CHROME_BROWSER_UI_SETTINGS_UTILS_FAKE_OBSERVABLE_BOOLEAN_H_
#import <Foundation/Foundation.h>
#import "ios/chrome/browser/ui/settings/utils/observable_boolean.h"
// ObservableBoolean to be used in tests.
@interface FakeObservableBoolean : NSObject<ObservableBoolean>
@end
// BooleanObserver to be used in tests. It reports the number of changes made.
@interface TestBooleanObserver : NSObject<BooleanObserver>
// Number of changes made since this observer started observing.
@property(nonatomic, assign) int updateCount;
@end
#endif // IOS_CHROME_BROWSER_UI_SETTINGS_UTILS_FAKE_OBSERVABLE_BOOLEAN_H_