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

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

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/Internals.idl ('k') | Source/core/testing/ReadableStreamTestCase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/ReadableStreamTestCase.h
diff --git a/Source/core/testing/ReadableStreamTestCase.h b/Source/core/testing/ReadableStreamTestCase.h
new file mode 100644
index 0000000000000000000000000000000000000000..254f2913fa9123d6d9c5116b1477212e8d6d8c9c
--- /dev/null
+++ b/Source/core/testing/ReadableStreamTestCase.h
@@ -0,0 +1,35 @@
+// 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 ReadableStreamTestCase_h
+#define ReadableStreamTestCase_h
+
+#include "bindings/core/v8/ScriptState.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class ReadableStreamTestRequest;
+class ReadableStreamTestSource;
+
+class ReadableStreamTestCase final : public GarbageCollected<ReadableStreamTestCase>, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+public:
+ DECLARE_TRACE();
+
+ ReadableStreamTestCase(ScriptState*);
+
+ ReadableStreamTestRequest* request() { return m_request; }
+ ReadableStreamTestSource* source() { return m_source; }
+
+private:
+ Member<ReadableStreamTestSource> m_source;
+ Member<ReadableStreamTestRequest> m_request;
+};
+
+} // namespace blink
+
+#endif // ReadableStreamTestCase_h
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | Source/core/testing/ReadableStreamTestCase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698