#include "chrome/browser/screen_ai/screen_ai_install_state.h"
#include "base/files/file_path.h"
#include "base/scoped_observation.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
class TestScreenAIInstallState : public screen_ai::ScreenAIInstallState { … };
}
namespace screen_ai {
class ScreenAIInstallStateTest : public testing::Test,
ScreenAIInstallState::Observer { … };
TEST_F(ScreenAIInstallStateTest, AddingObserverTriggersDownload) { … }
TEST_F(ScreenAIInstallStateTest, DownloadedBeforeObservation) { … }
TEST_F(ScreenAIInstallStateTest, ObservationAfterFailure) { … }
}