@Test public void wrapChannel_methodDescriptor() throws Exception { final AtomicReference<MethodDescriptor<?, ?>> methodRef = new AtomicReference<MethodDescriptor<?, ?>>(); Channel channel = new Channel() { @Override public <RequestT, ResponseT> ClientCall<RequestT, ResponseT> newCall( MethodDescriptor<RequestT, ResponseT> method, CallOptions callOptions) { methodRef.set(method); return new NoopClientCall<RequestT, ResponseT>(); } @Override public String authority() { throw new UnsupportedOperationException(); } }; Channel wChannel = binlogProvider.wrapChannel(channel); ClientCall<String, Integer> unusedClientCall = wChannel.newCall(method, CallOptions.DEFAULT); validateWrappedMethod(methodRef.get()); }
@Override public final Channel wrapChannel(Channel channel) { return ClientInterceptors.intercept(channel, binaryLogShim); }
BinaryLogProvider extends BinaryLog { @Override public final Channel wrapChannel(Channel channel) { return ClientInterceptors.intercept(channel, binaryLogShim); } }
BinaryLogProvider extends BinaryLog { @Override public final Channel wrapChannel(Channel channel) { return ClientInterceptors.intercept(channel, binaryLogShim); }  }
BinaryLogProvider extends BinaryLog { @Override public final Channel wrapChannel(Channel channel) { return ClientInterceptors.intercept(channel, binaryLogShim); }  @Override final Channel wrapChannel(Channel channel); @Override final ServerMethodDefinition<?, ?> wrapMethodDefinition(
      ServerMethodDefinition<ReqT, RespT> oMethodDef); @Override void close(); }
BinaryLogProvider extends BinaryLog { @Override public final Channel wrapChannel(Channel channel) { return ClientInterceptors.intercept(channel, binaryLogShim); }  @Override final Channel wrapChannel(Channel channel); @Override final ServerMethodDefinition<?, ?> wrapMethodDefinition(
      ServerMethodDefinition<ReqT, RespT> oMethodDef); @Override void close(); @VisibleForTesting
  static final Marshaller<byte[]> BYTEARRAY_MARSHALLER; }