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

Unified Diff: net/quic/test_tools/delayed_verify_strike_register_client.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
Index: net/quic/test_tools/delayed_verify_strike_register_client.h
diff --git a/net/quic/test_tools/delayed_verify_strike_register_client.h b/net/quic/test_tools/delayed_verify_strike_register_client.h
deleted file mode 100644
index 6d5002b76046b4464cad34c307ef460e0925939e..0000000000000000000000000000000000000000
--- a/net/quic/test_tools/delayed_verify_strike_register_client.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_
-#define NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_
-
-#include <string>
-#include <vector>
-
-#include "base/strings/string_piece.h"
-#include "net/quic/crypto/local_strike_register_client.h"
-
-namespace net {
-namespace test {
-
-// Test helper that allows delaying execution of nonce verification
-// callbacks until a later time.
-class DelayedVerifyStrikeRegisterClient : public LocalStrikeRegisterClient {
- public:
- DelayedVerifyStrikeRegisterClient(unsigned max_entries,
- uint32 current_time_external,
- uint32 window_secs,
- const uint8 orbit[8],
- StrikeRegister::StartupType startup);
- ~DelayedVerifyStrikeRegisterClient() override;
-
- void VerifyNonceIsValidAndUnique(base::StringPiece nonce,
- QuicWallTime now,
- ResultCallback* cb) override;
-
- // Start queueing verifications instead of executing them immediately.
- void StartDelayingVerification() {
- delay_verifications_ = true;
- }
- // Number of verifications that are queued.
- int PendingVerifications() const;
- // Run all pending verifications.
- void RunPendingVerifications();
-
- private:
- struct VerifyArgs {
- VerifyArgs(base::StringPiece in_nonce,
- QuicWallTime in_now,
- ResultCallback* in_cb)
- : nonce(in_nonce.as_string()),
- now(in_now),
- cb(in_cb) {
- }
-
- std::string nonce;
- QuicWallTime now;
- ResultCallback* cb;
- };
-
- bool delay_verifications_;
- std::vector<VerifyArgs> pending_verifications_;
-
- DISALLOW_COPY_AND_ASSIGN(DelayedVerifyStrikeRegisterClient);
-};
-
-} // namespace test
-} // namespace net
-
-#endif // NET_QUIC_TEST_TOOLS_DELAYED_VERIFY_STRIKE_REGISTER_CLIENT_H_
« no previous file with comments | « net/quic/test_tools/crypto_test_utils_openssl.cc ('k') | net/quic/test_tools/delayed_verify_strike_register_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698