Index: third_party/grpc/test/core/end2end/fixtures/proxy.h |
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIConnectionEvent.cpp b/third_party/grpc/test/core/end2end/fixtures/proxy.h |
similarity index 66% |
copy from third_party/WebKit/Source/modules/webmidi/MIDIConnectionEvent.cpp |
copy to third_party/grpc/test/core/end2end/fixtures/proxy.h |
index 046e542888c2f43546311ea771312a123c3e7766..c1cf01d39a47710ead334197a05ec3944cd7e67d 100644 |
--- a/third_party/WebKit/Source/modules/webmidi/MIDIConnectionEvent.cpp |
+++ b/third_party/grpc/test/core/end2end/fixtures/proxy.h |
@@ -1,5 +1,7 @@ |
/* |
- * Copyright (C) 2014 Google Inc. All rights reserved. |
+ * |
+ * Copyright 2015, Google Inc. |
+ * All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -26,26 +28,28 @@ |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ * |
*/ |
-#include "modules/webmidi/MIDIConnectionEvent.h" |
+#ifndef GRPC_TEST_CORE_END2END_FIXTURES_PROXY_H |
+#define GRPC_TEST_CORE_END2END_FIXTURES_PROXY_H |
+ |
+#include <grpc/grpc.h> |
+ |
+/* proxy service for _with_proxy fixtures */ |
-#include "modules/webmidi/MIDIConnectionEventInit.h" |
+typedef struct grpc_end2end_proxy grpc_end2end_proxy; |
-namespace blink { |
+typedef struct grpc_end2end_proxy_def { |
+ grpc_server *(*create_server)(const char *port); |
+ grpc_channel *(*create_client)(const char *target); |
+} grpc_end2end_proxy_def; |
-MIDIConnectionEvent::MIDIConnectionEvent(const AtomicString& type, const MIDIConnectionEventInit& initializer) |
- : Event(type, initializer) |
- , m_port(nullptr) |
-{ |
- if (initializer.hasPort()) |
- m_port = initializer.port(); |
-} |
+grpc_end2end_proxy *grpc_end2end_proxy_create( |
+ const grpc_end2end_proxy_def *def); |
+void grpc_end2end_proxy_destroy(grpc_end2end_proxy *proxy); |
-DEFINE_TRACE(MIDIConnectionEvent) |
-{ |
- visitor->trace(m_port); |
- Event::trace(visitor); |
-} |
+const char *grpc_end2end_proxy_get_client_target(grpc_end2end_proxy *proxy); |
+const char *grpc_end2end_proxy_get_server_port(grpc_end2end_proxy *proxy); |
-} // namespace blink |
+#endif /* GRPC_TEST_CORE_END2END_FIXTURES_PROXY_H */ |