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

Unified Diff: Source/core/testing/CoreTestHelpers.h

Issue 1105333002: Introduce printers for Node and Position for ease of developing GTest test files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-05-21T15:05:46 Created 5 years, 7 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/VisibleSelectionTest.cpp ('k') | Source/core/testing/CoreTestHelpers.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/CoreTestHelpers.h
diff --git a/Source/core/testing/CoreTestHelpers.h b/Source/core/testing/CoreTestHelpers.h
new file mode 100644
index 0000000000000000000000000000000000000000..dd89e5ff3346d790de2b09e694f5fc00eb97d40d
--- /dev/null
+++ b/Source/core/testing/CoreTestHelpers.h
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CoreTestHelpers_h
+#define CoreTestHelpers_h
+
+#include "core/dom/Position.h"
+#include "wtf/testing/WTFTestHelpers.h"
+
+namespace blink {
+
+class Node;
+
+std::ostream& operator<<(std::ostream&, const Node&);
+std::ostream& operator<<(std::ostream&, const Node*);
+std::ostream& operator<<(std::ostream&, Position::AnchorType);
+std::ostream& operator<<(std::ostream&, const Position&);
+
+} // namespace blink
+
+#endif // CoreTestHelpers_h
« no previous file with comments | « Source/core/editing/VisibleSelectionTest.cpp ('k') | Source/core/testing/CoreTestHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698