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

Unified Diff: net/quic/core/crypto/crypto_secret_boxer_test.cc

Issue 2848203002: Add a platform implementation of QuicTest and QuicTestWithParam (Closed)
Patch Set: net/quic/platform/impl/quic_test_impl.cc Created 3 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 | « net/quic/core/crypto/crypto_handshake_message_test.cc ('k') | net/quic/core/crypto/crypto_server_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/crypto_secret_boxer_test.cc
diff --git a/net/quic/core/crypto/crypto_secret_boxer_test.cc b/net/quic/core/crypto/crypto_secret_boxer_test.cc
index 12820179c16024696391013eb945f010cd834011..18fea413bfda6420832251198de902b60ea057d8 100644
--- a/net/quic/core/crypto/crypto_secret_boxer_test.cc
+++ b/net/quic/core/crypto/crypto_secret_boxer_test.cc
@@ -5,14 +5,16 @@
#include "net/quic/core/crypto/crypto_secret_boxer.h"
#include "net/quic/core/crypto/quic_random.h"
-#include "testing/gtest/include/gtest/gtest.h"
+#include "net/quic/platform/api/quic_test.h"
using std::string;
namespace net {
namespace test {
-TEST(CryptoSecretBoxerTest, BoxAndUnbox) {
+class CryptoSecretBoxerTest : public QuicTest {};
+
+TEST_F(CryptoSecretBoxerTest, BoxAndUnbox) {
QuicStringPiece message("hello world");
CryptoSecretBoxer boxer;
@@ -47,7 +49,7 @@ static bool CanDecode(const CryptoSecretBoxer& decoder,
return ok;
}
-TEST(CryptoSecretBoxerTest, MultipleKeys) {
+TEST_F(CryptoSecretBoxerTest, MultipleKeys) {
string key_11(CryptoSecretBoxer::GetKeySize(), 0x11);
string key_12(CryptoSecretBoxer::GetKeySize(), 0x12);
« no previous file with comments | « net/quic/core/crypto/crypto_handshake_message_test.cc ('k') | net/quic/core/crypto/crypto_server_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698