Commit Graph

13 Commits

Author SHA1 Message Date
ejona ba653d4bd0 Move StubConfigTest to third_party
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=79430433
2015-01-08 14:43:05 -08:00
ejona 2a93c47657 Remove GrpcServer to allow more tests to move to third_party.
GrpcServer had the same restriction that GrpcClient did: it had a
single enum of all transports that prevents using it in third_party.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=79428440
2015-01-08 14:43:05 -08:00
zhangkun a71d887661 Make all transport factories package-private in favor of channel builders.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=79367593
2015-01-08 14:43:04 -08:00
ejona 3d4ea0d348 Implement standard integration tests (almost).
Our pre-existing tests were slightly different from the integration
tests to be implemented in each language. Change our implementation to
match.

Unfortunately, the standard tests actually trigger Netty flow control
bugs, so we decrease stream sizes to <64K as a workaround.

Because the tests now compare to golden responses, they detected that
the cpp server was sending all a's instead of all 0s. That is now fixed.

We receive errors hitting CPP server for empty_unary and the various
streaming tests, so java_cpp isn't enabled in interop_scenarios.txt.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=79086882
2015-01-08 14:43:03 -08:00
ejona e813eaae2f [3/3] Use AbstractTransportTest for test case impls in TestServiceClient.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=78862990
2015-01-08 14:43:03 -08:00
ejona 97d3ade2ea [2/3] Use transport builders instead of ClientBootstrap.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=78861122
2015-01-08 14:43:03 -08:00
ejona 9a5a8de65d [1/3] Move AbstractTransportTest to third_party.
This required making it no longer depend on GrpcClient. Instead, we now
use the builders that make using GrpcClient almost completely obsolete.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=78860648
2015-01-08 14:43:02 -08:00
nathanmittler ffc18f6c57 Adding MOE configuration for grpc_java.
The TestService proto is temporarily supplied as a generated jar (until the open source protoc compiler supports grpc).

Copies of messages.proto, empty.proto, and message_set.proto are scrubbed and included in the source under integration-testing.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=78711468
2015-01-08 14:43:02 -08:00
lryan 8fc81f4a37 Fix compile error using new ProtoUtils
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=78611659
2015-01-08 14:43:01 -08:00
nathanmittler 29cbef1f9b Renaming gRPC-java "newtransport" package to just "transport".
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=78596663
2015-01-08 14:43:00 -08:00
ejona 2dbae4d4f2 Use zero-filled payload for UNCOMPRESSED.
Previously we were using English text, but this just adds extra effort for all
the other languages that will need to implement servers. The integration test
case descriptions uses zero-filled bytes.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=78477356
2015-01-08 14:42:59 -08:00
nathanmittler 0304b3d6b2 Cleaning up various compiler warnings in preparation for opensource.
overview:
1) Lots of @SuppressWarnings :)

2) Remove dependencies on StandardCharsets.XXX (which is Java 7)

3) Moved testing/utils/ssl/* to .../stubby/util so that the netty transport doesn't depend directly on the testing module.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=78460727
2015-01-08 14:42:59 -08:00
nathanmittler 905d387e4f Porting GrpcClient and GrpcServer to third_party.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=78372524
2015-01-08 14:42:58 -08:00