#include "chrome/browser/push_messaging/push_messaging_notification_manager.h"
#include "base/functional/bind.h"
#include "build/chromeos_buildflags.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_renderer_host.h"
#include "extensions/buildflags/buildflags.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "chrome/browser/extensions/chrome_test_extension_loader.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/extensions/extension_service_test_with_install.h"
#include "extensions/common/extension.h"
#include "extensions/test/test_extension_dir.h"
#endif
class PushMessagingNotificationManagerTest
: public ChromeRenderViewHostTestHarness { … };
TEST_F(PushMessagingNotificationManagerTest, IsTabVisible) { … }
TEST_F(PushMessagingNotificationManagerTest, IsTabVisibleViewSource) { … }
#if BUILDFLAG(ENABLE_EXTENSIONS)
namespace extensions {
ContextType;
class ExtensionsPushMessagingNotificationManagerTest
: public ExtensionServiceTestWithInstall,
public testing::WithParamInterface<ContextType> { … };
TEST_P(ExtensionsPushMessagingNotificationManagerTest,
SkipEnforceUserVisibleOnlyRequirements_ForExtensions) { … }
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
}
#endif