#include "chrome/browser/ui/views/frame/web_contents_close_handler.h"
#include "base/test/task_environment.h"
#include "chrome/browser/ui/views/frame/web_contents_close_handler_delegate.h"
#include "testing/gtest/include/gtest/gtest.h"
class MockWebContentsCloseHandlerDelegate
: public WebContentsCloseHandlerDelegate { … };
class WebContentsCloseHandlerTest : public testing::Test { … };
TEST_F(WebContentsCloseHandlerTest, ChangingActiveTabDestroys) { … }
TEST_F(WebContentsCloseHandlerTest, DontCloneOnChangeWhenClosing) { … }
TEST_F(WebContentsCloseHandlerTest, DontDestroyImmediatleyAfterCancel) { … }