Change the prototype of ChannelIDSource::GetChannelIDKey() to allow an
asynchronous implementation.

Current ChannelIDSource implementations work in synchronous mode. So
QuicCryptoClientStream still calls ChannelIDSource::GetChannelIDKey() as
a synchronous function. In a future CL, QuicCryptoClientStream will properly
call ChannelIDSource::GetChannelIDKey() as an asynchronous function.

Note that ChannelIDSourceForTesting() returns a ChannelIDSource that works
in synchronous mode.

Merge internal CL: 68399207

[email protected],[email protected]
BUG=none

Review URL: https://codereview.chromium.org/320663002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275634 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/net/quic/test_tools/crypto_test_utils.cc b/net/quic/test_tools/crypto_test_utils.cc
index 4834dec4..0dbf906 100644
--- a/net/quic/test_tools/crypto_test_utils.cc
+++ b/net/quic/test_tools/crypto_test_utils.cc
@@ -192,8 +192,11 @@
 
   if (options.channel_id_enabled) {
     scoped_ptr<ChannelIDKey> channel_id_key;
-    EXPECT_TRUE(crypto_config.channel_id_source()->GetChannelIDKey(
-        kServerHostname, &channel_id_key));
+    QuicAsyncStatus status =
+        crypto_config.channel_id_source()->GetChannelIDKey(kServerHostname,
+                                                           &channel_id_key,
+                                                           NULL);
+    EXPECT_EQ(QUIC_SUCCESS, status);
     EXPECT_EQ(channel_id_key->SerializeKey(),
               server->crypto_negotiated_params().channel_id);
   }