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

Unified Diff: third_party/grpc/test/core/end2end/fixtures/proxy.h

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 */
« no previous file with comments | « third_party/grpc/test/core/end2end/fixtures/h2_uds+poll.c ('k') | third_party/grpc/test/core/end2end/fixtures/proxy.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698