// 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. #include "chrome/browser/background/background_mode_optimizer.h" #include <memory> #include "chrome/browser/lifetime/browser_shutdown.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" // Dummy optimizer that skips doing the restart. // friend with BackgroundModeOptimizer, can't be in the anonymous namespace. class DummyBackgroundModeOptimizer : public BackgroundModeOptimizer { … }; TEST(BackgroundModeOptimizerTest, OnKeepAliveRestartStateChanged) { … }