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

Unified Diff: third_party/grpc/test/core/end2end/end2end_tests.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/end2end_tests.h
diff --git a/third_party/WebKit/Source/core/clipboard/DataTransferItem.h b/third_party/grpc/test/core/end2end/end2end_tests.h
similarity index 55%
copy from third_party/WebKit/Source/core/clipboard/DataTransferItem.h
copy to third_party/grpc/test/core/end2end/end2end_tests.h
index bbf43abf4a278a85fcdd59ad9d1a1b8028a915c7..bc44f43a1785355e3843896f4bcaa4fdf8bc0dda 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransferItem.h
+++ b/third_party/grpc/test/core/end2end/end2end_tests.h
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2011 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,48 +28,42 @@
* 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.
+ *
*/
-#ifndef DataTransferItem_h
-#define DataTransferItem_h
-
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "core/CoreExport.h"
-#include "platform/heap/Handle.h"
-#include "wtf/Forward.h"
-
-namespace blink {
+#ifndef GRPC_TEST_CORE_END2END_END2END_TESTS_H
+#define GRPC_TEST_CORE_END2END_END2END_TESTS_H
-class Blob;
-class DataObjectItem;
-class DataTransfer;
-class StringCallback;
-class ExecutionContext;
+#include <grpc/grpc.h>
-class CORE_EXPORT DataTransferItem final : public GarbageCollected<DataTransferItem>, public ScriptWrappable {
- DEFINE_WRAPPERTYPEINFO();
- WTF_MAKE_NONCOPYABLE(DataTransferItem);
-public:
- static DataTransferItem* create(DataTransfer*, DataObjectItem*);
+typedef struct grpc_end2end_test_fixture grpc_end2end_test_fixture;
+typedef struct grpc_end2end_test_config grpc_end2end_test_config;
- String kind() const;
- String type() const;
+#define FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION 1
+#define FEATURE_MASK_SUPPORTS_HOSTNAME_VERIFICATION 2
+#define FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS 4
- void getAsString(ExecutionContext*, StringCallback*) const;
- Blob* getAsFile() const;
+#define FAIL_AUTH_CHECK_SERVER_ARG_NAME "fail_auth_check"
- DataTransfer* getDataTransfer() { return m_dataTransfer.get(); }
- DataObjectItem* getDataObjectItem() { return m_item.get(); }
-
- DECLARE_TRACE();
-
-private:
- DataTransferItem(DataTransfer*, DataObjectItem*);
+struct grpc_end2end_test_fixture {
+ grpc_completion_queue *cq;
+ grpc_server *server;
+ grpc_channel *client;
+ void *fixture_data;
+};
- Member<DataTransfer> m_dataTransfer;
- Member<DataObjectItem> m_item;
+struct grpc_end2end_test_config {
+ const char *name;
+ uint32_t feature_mask;
+ grpc_end2end_test_fixture (*create_fixture)(grpc_channel_args *client_args,
+ grpc_channel_args *server_args);
+ void (*init_client)(grpc_end2end_test_fixture *f,
+ grpc_channel_args *client_args);
+ void (*init_server)(grpc_end2end_test_fixture *f,
+ grpc_channel_args *server_args);
+ void (*tear_down_data)(grpc_end2end_test_fixture *f);
};
-} // namespace blink
+void grpc_end2end_tests(int argc, char **argv, grpc_end2end_test_config config);
-#endif // DataTransferItem_h
+#endif /* GRPC_TEST_CORE_END2END_END2END_TESTS_H */
« no previous file with comments | « third_party/grpc/test/core/end2end/end2end_nosec_tests.c ('k') | third_party/grpc/test/core/end2end/end2end_tests.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698