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

Unified Diff: Source/core/editing/VisibleSelectionTest.cpp

Issue 1097063003: Oilpan: fix build after r194270. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: adjust asserts 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/VisibleSelectionTest.cpp
diff --git a/Source/core/editing/VisibleSelectionTest.cpp b/Source/core/editing/VisibleSelectionTest.cpp
index c14924b20b9f007b333227ed9b5fd4c9c881533c..b8bada86806a4a71b45f0b78de361eb373afcd49 100644
--- a/Source/core/editing/VisibleSelectionTest.cpp
+++ b/Source/core/editing/VisibleSelectionTest.cpp
@@ -99,6 +99,9 @@ TEST_F(VisibleSelectionTest, ShadowCrossing)
RefPtrWillBeRawPtr<Element> two = body->querySelector("#two", ASSERT_NO_EXCEPTION);
RefPtrWillBeRawPtr<Element> six = shadowRoot->querySelector("#s6", ASSERT_NO_EXCEPTION);
+ ASSERT_UNUSED(two, two);
+ (void)six;
+
VisibleSelection selection(Position::firstPositionInNode(one.get()), Position::lastPositionInNode(shadowRoot.get()));
EXPECT_EQ(Position(host.get(), Position::PositionIsBeforeAnchor), selection.start());
@@ -118,6 +121,9 @@ TEST_F(VisibleSelectionTest, ShadowDistributedNodes)
RefPtrWillBeRawPtr<Element> two = body->querySelector("#two", ASSERT_NO_EXCEPTION);
RefPtrWillBeRawPtr<Element> five = shadowRoot->querySelector("#s5", ASSERT_NO_EXCEPTION);
+ ASSERT_UNUSED(host, host);
+ ASSERT_UNUSED(five, five);
+
VisibleSelection selection(Position::firstPositionInNode(one.get()), Position::lastPositionInNode(two.get()));
EXPECT_EQ(Position(one->firstChild(), 0, Position::PositionIsOffsetInAnchor), selection.start());
@@ -140,6 +146,10 @@ TEST_F(VisibleSelectionTest, ShadowNested)
RefPtrWillBeRawPtr<Element> host2 = shadowRoot->querySelector("#host2", ASSERT_NO_EXCEPTION);
RefPtrWillBeRawPtr<Element> eight = shadowRoot2->querySelector("#s8", ASSERT_NO_EXCEPTION);
+ ASSERT_UNUSED(two, two);
+ ASSERT_UNUSED(eight, eight);
+ (void)host2;
+
VisibleSelection selection(Position::firstPositionInNode(one.get()), Position::lastPositionInNode(shadowRoot2.get()));
EXPECT_EQ(Position(host.get(), Position::PositionIsBeforeAnchor), selection.start());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698