chromium/ios/chrome/browser/ntp/shared/metrics/feed_metrics_recorder+testing.h

// Copyright 2024 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_NTP_SHARED_METRICS_FEED_METRICS_RECORDER_TESTING_H_
#define IOS_CHROME_BROWSER_NTP_SHARED_METRICS_FEED_METRICS_RECORDER_TESTING_H_

#import "ios/chrome/browser/ntp/shared/metrics/feed_metrics_recorder.h"

// Category for exposing properties and methods for testing.
@interface FeedMetricsRecorder (Testing)

// Exposing the timeSpentInFeed property to check if time is properly recorded.
@property(nonatomic, assign) base::TimeDelta timeSpentInFeed;

// Exposing resetGoodVisitSession to mimic session expiration.
- (void)resetGoodVisitSession;

@end

#endif  // IOS_CHROME_BROWSER_NTP_SHARED_METRICS_FEED_METRICS_RECORDER_TESTING_H_