// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ssl/daily_navigation_counter.h" #include "base/test/simple_test_clock.h" #include "base/values.h" #include "testing/gtest/include/gtest/gtest.h" constexpr char kStartTime[] = …; // Navigation counter should be able to load the counts from a dict. TEST(DailyNavigationCounterTest, ShouldLoadFromDict) { … } // Navigation counter should properly handle counts using a small rolling // window and small saving interval. TEST(DailyNavigationCounterTest, SmallRollingWindowSmallInterval) { … } // Navigation counter should properly handle counts using a large rolling // window and small saving interval. TEST(DailyNavigationCounterTest, LargeRollingWindowSmallInterval) { … } // Navigation counter should properly handle counts using a small rolling // window and large saving interval. TEST(DailyNavigationCounterTest, SmallRollingWindowLargeInterval) { … } // Navigation counter should properly handle counts using a large rolling // window and large saving interval. TEST(DailyNavigationCounterTest, LargeRollingWindowLargeInterval) { … }