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

Unified Diff: Source/core/testing/ReadableStreamTestCase.cpp

Issue 1167343002: Add methods for creating V8 extras-based ReadableStreams from C++ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: That todo is not necessary according to yhirano@ Created 5 years, 5 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/testing/ReadableStreamTestCase.h ('k') | Source/core/testing/ReadableStreamTestCase.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/ReadableStreamTestCase.cpp
diff --git a/Source/core/testing/ReadableStreamTestCase.cpp b/Source/core/testing/ReadableStreamTestCase.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..f5e1a76e733d808a0818736f597f30b453f8e457
--- /dev/null
+++ b/Source/core/testing/ReadableStreamTestCase.cpp
@@ -0,0 +1,25 @@
+// 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.
+
+#include "config.h"
+#include "core/testing/ReadableStreamTestCase.h"
+
+#include "core/testing/ReadableStreamTestRequest.h"
+#include "core/testing/ReadableStreamTestSource.h"
+
+namespace blink {
+
+ReadableStreamTestCase::ReadableStreamTestCase(ScriptState* scriptState)
+ : m_source(new ReadableStreamTestSource(scriptState))
+ , m_request(new ReadableStreamTestRequest(scriptState, m_source))
+{
+}
+
+DEFINE_TRACE(ReadableStreamTestCase)
+{
+ visitor->trace(m_request);
+ visitor->trace(m_source);
+}
+
+}
« no previous file with comments | « Source/core/testing/ReadableStreamTestCase.h ('k') | Source/core/testing/ReadableStreamTestCase.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698