Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1907)

Unified Diff: Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp

Issue 722423004: Remove WindowFocusAllowedIndicator and associated code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@window_focus
Patch Set: rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp
diff --git a/Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp b/Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp
index 4a98254a4546157552e0d07dd1c7102b23a702ab..c660156159d99fbbbaf572ad3e63594d464e0e66 100644
--- a/Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp
+++ b/Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp
@@ -32,7 +32,6 @@
#include "public/web/WebScopedWindowFocusAllowedIndicator.h"
#include "core/dom/Document.h"
-#include "core/page/WindowFocusAllowedIndicator.h"
#include "public/web/WebDocument.h"
#include <gtest/gtest.h>
@@ -42,21 +41,6 @@ namespace {
TEST(WebScopedWindowFocusAllowedIndicatorTest, Basic)
{
- EXPECT_FALSE(WindowFocusAllowedIndicator::windowFocusAllowed());
- {
- WebScopedWindowFocusAllowedIndicator indicator1;
- EXPECT_TRUE(WindowFocusAllowedIndicator::windowFocusAllowed());
- {
- WebScopedWindowFocusAllowedIndicator indicator2;
- EXPECT_TRUE(WindowFocusAllowedIndicator::windowFocusAllowed());
- }
- EXPECT_TRUE(WindowFocusAllowedIndicator::windowFocusAllowed());
- }
- EXPECT_FALSE(WindowFocusAllowedIndicator::windowFocusAllowed());
-}
-
-TEST(WebScopedWindowFocusAllowedIndicatorTest, WithDocument)
-{
RefPtrWillBePersistent<Document> document = Document::create();
WebDocument webDocument(document);
« no previous file with comments | « Source/web/WebScopedWindowFocusAllowedIndicator.cpp ('k') | public/web/WebScopedWindowFocusAllowedIndicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698