#include "chrome/browser/upgrade_detector/installed_version_poller.h"
#include "base/memory/raw_ptr.h"
#include "stdint.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "chrome/browser/upgrade_detector/build_state.h"
#include "chrome/browser/upgrade_detector/installed_version_monitor.h"
#include "chrome/browser/upgrade_detector/mock_build_state_observer.h"
#include "components/version_info/version_info.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
AllOf;
ByMove;
Eq;
IsFalse;
IsTrue;
Property;
Return;
namespace {
class FakeMonitor final : public InstalledVersionMonitor { … };
}
class InstalledVersionPollerTest : public ::testing::Test { … };
TEST_F(InstalledVersionPollerTest, TestNoUpdate) { … }
TEST_F(InstalledVersionPollerTest, TestUpgrade) { … }
TEST_F(InstalledVersionPollerTest, TestUpgradeThenDowngrade) { … }
TEST_F(InstalledVersionPollerTest, TestCriticalUpgrade) { … }
TEST_F(InstalledVersionPollerTest, TestMissingVersion) { … }
TEST_F(InstalledVersionPollerTest, TestRollback) { … }
TEST_F(InstalledVersionPollerTest, TestMonitor) { … }