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

Unified Diff: Source/core/editing/Position.h

Issue 1313283002: Re-introduce printers for Node, Position, PositionAnchorType in GTest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-26T14:32:13 Add comments for printers which are only for testing Created 5 years, 4 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 | « Source/core/editing/EditingTestBase.h ('k') | Source/core/input/EventHandlerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/Position.h
diff --git a/Source/core/editing/Position.h b/Source/core/editing/Position.h
index caa8e862bfa59c3173a3a7515b05cc9134e41fa1..5821c0576522f1c9571b583eeddb9975bfe7270a 100644
--- a/Source/core/editing/Position.h
+++ b/Source/core/editing/Position.h
@@ -390,6 +390,15 @@ inline PositionInComposedTree fromPositionInDOMTree<EditingInComposedTreeStrateg
return toPositionInComposedTree(position);
}
+// These printers are available only for testing in "webkit_unit_tests", and
+// implemented in "core/testing/CoreTestPrinters.cpp".
+std::ostream& operator<<(std::ostream&, const Node&);
+std::ostream& operator<<(std::ostream&, const Node*);
+
+std::ostream& operator<<(std::ostream&, PositionAnchorType);
+std::ostream& operator<<(std::ostream&, const Position&);
+std::ostream& operator<<(std::ostream&, const PositionInComposedTree&);
+
} // namespace blink
#ifndef NDEBUG
« no previous file with comments | « Source/core/editing/EditingTestBase.h ('k') | Source/core/input/EventHandlerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698