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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h

Issue 1865543002: Add DocumentWriteEvaluator unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move anonymous namespace (trybots prev) Created 4 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 | third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h
index baccc5b903f53dc47b273ece5b816665282c90e8..b7f191410922b03e77586dd3059cdf573aebb795 100644
--- a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h
+++ b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h
@@ -23,6 +23,9 @@ class CORE_EXPORT DocumentWriteEvaluator {
USING_FAST_MALLOC(DocumentWriteEvaluator);
public:
+ // For unit testing.
+ DocumentWriteEvaluator(const String& pathName, const String& hostName, const String& protocol, const String& userAgent);
+
static PassOwnPtr<DocumentWriteEvaluator> create(const Document& document)
{
return adoptPtr(new DocumentWriteEvaluator(document));
@@ -54,8 +57,8 @@ private:
String m_pathName;
String m_hostName;
- String m_userAgent;
String m_protocol;
+ String m_userAgent;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698