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

Unified Diff: third_party/grpc/test/cpp/util/cli_call.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
« no previous file with comments | « third_party/grpc/test/cpp/util/byte_buffer_test.cc ('k') | third_party/grpc/test/cpp/util/cli_call.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/grpc/test/cpp/util/cli_call.h
diff --git a/third_party/WebKit/Source/web/WebScopedUserGesture.cpp b/third_party/grpc/test/cpp/util/cli_call.h
similarity index 61%
copy from third_party/WebKit/Source/web/WebScopedUserGesture.cpp
copy to third_party/grpc/test/cpp/util/cli_call.h
index ce53beb7255a2b372be5a3c3ace3c7b9c799f08d..2fbc9618b648aebe1aaaea56d27bc88cdcaf2276 100644
--- a/third_party/WebKit/Source/web/WebScopedUserGesture.cpp
+++ b/third_party/grpc/test/cpp/util/cli_call.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,29 +28,35 @@
* 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 "public/web/WebScopedUserGesture.h"
+#ifndef GRPC_TEST_CPP_UTIL_CLI_CALL_H
+#define GRPC_TEST_CPP_UTIL_CLI_CALL_H
-#include "platform/UserGestureIndicator.h"
-#include "public/web/WebUserGestureToken.h"
+#include <map>
-namespace blink {
+#include <grpc++/channel.h>
+#include <grpc++/support/status.h>
+#include <grpc++/support/string_ref.h>
-void WebScopedUserGesture::initialize()
-{
- m_indicator.reset(new UserGestureIndicator(DefinitelyProcessingNewUserGesture));
-}
+namespace grpc {
+namespace testing {
-void WebScopedUserGesture::initializeWithToken(const WebUserGestureToken& token)
-{
- if (!token.isNull())
- m_indicator.reset(new UserGestureIndicator(token));
-}
+class CliCall GRPC_FINAL {
+ public:
+ typedef std::multimap<grpc::string, grpc::string> OutgoingMetadataContainer;
+ typedef std::multimap<grpc::string_ref, grpc::string_ref>
+ IncomingMetadataContainer;
+ static Status Call(std::shared_ptr<grpc::Channel> channel,
+ const grpc::string& method, const grpc::string& request,
+ grpc::string* response,
+ const OutgoingMetadataContainer& metadata,
+ IncomingMetadataContainer* server_initial_metadata,
+ IncomingMetadataContainer* server_trailing_metadata);
+};
-void WebScopedUserGesture::reset()
-{
- m_indicator.reset(0);
-}
+} // namespace testing
+} // namespace grpc
-} // namespace blink
+#endif // GRPC_TEST_CPP_UTIL_CLI_CALL_H
« no previous file with comments | « third_party/grpc/test/cpp/util/byte_buffer_test.cc ('k') | third_party/grpc/test/cpp/util/cli_call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698