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

Unified Diff: net/spdy/spdy_session_test_util.h

Issue 11644088: SPDY - implement greedy approach to read all the data and process it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/spdy/spdy_session_test_util.h
===================================================================
--- net/spdy/spdy_session_test_util.h (revision 0)
+++ net/spdy/spdy_session_test_util.h (revision 0)
@@ -0,0 +1,37 @@
+// Copyright (c) 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_SPDY_SPDY_SESSION_TEST_UTIL_H_
+#define NET_SPDY_SPDY_SESSION_TEST_UTIL_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/message_loop.h"
+#include "base/pending_task.h"
+
+namespace net {
+
+class SpdySessionTestTaskObserver : public MessageLoop::TaskObserver {
Ryan Sleevi 2013/02/06 23:04:46 Please provide comments about what this class does
ramant (doing other things) 2013/02/07 02:11:07 Done.
+ public:
+ SpdySessionTestTaskObserver(const std::string& file_name,
Ryan Sleevi 2013/02/06 23:04:46 Please provide comments on what these parameters a
ramant (doing other things) 2013/02/07 02:11:07 Done.
+ const std::string& function_name);
+
+ virtual ~SpdySessionTestTaskObserver();
+
+ virtual void WillProcessTask(const base::PendingTask& pending_task) OVERRIDE;
+
+ virtual void DidProcessTask(const base::PendingTask& pending_task) OVERRIDE;
Ryan Sleevi 2013/02/06 23:04:46 style: Within net/ (and in general, within Chrome
ramant (doing other things) 2013/02/07 02:11:07 Done.
+
+ uint32 posted_count() const { return posted_count_; }
Ryan Sleevi 2013/02/06 23:04:46 Please provide comments explaining what this numbe
ramant (doing other things) 2013/02/07 02:11:07 Done.
+
+ private:
+ uint32 posted_count_;
+ std::string file_name_;
+ std::string function_name_;
+};
+
+} // namespace net
+
+#endif // NET_SPDY_SPDY_SESSION_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698