#include <memory>
#include "chrome/browser/ui/views/web_apps/view_visible_in_active_widget_notifier.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/test/test_future.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/interaction/element_identifier.h"
#include "ui/views/controls/label.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/widget/widget.h"
namespace web_apps {
namespace {
DEFINE_LOCAL_ELEMENT_IDENTIFIER_VALUE(…);
class ViewVisibleInActiveWidgetNotifierTest : public ChromeViewsTestBase { … };
TEST_F(ViewVisibleInActiveWidgetNotifierTest, WorksBeforeWidgetShown) { … }
TEST_F(ViewVisibleInActiveWidgetNotifierTest, WorksAfterWidgetShown) { … }
TEST_F(ViewVisibleInActiveWidgetNotifierTest, WidgetDestructionNoDangling) { … }
TEST_F(ViewVisibleInActiveWidgetNotifierTest,
WorksBeforeWidgetShownOrViewVisible) { … }
TEST_F(ViewVisibleInActiveWidgetNotifierTest, WorksWhenNotifierWeakPtrRemoved) { … }
}
}