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

Unified Diff: net/spdy/spdy_session_test_util.h

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. 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/spdy/spdy_session_pool_unittest.cc ('k') | net/spdy/spdy_session_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session_test_util.h
diff --git a/net/spdy/spdy_session_test_util.h b/net/spdy/spdy_session_test_util.h
deleted file mode 100644
index ceb385d4b028ca0a7d10f598c98b02de033f956f..0000000000000000000000000000000000000000
--- a/net/spdy/spdy_session_test_util.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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 <stdint.h>
-
-#include "base/message_loop/message_loop.h"
-#include "base/pending_task.h"
-#include "net/spdy/platform/api/spdy_string.h"
-
-namespace net {
-
-// SpdySessionTestTaskObserver is a MessageLoop::TaskObserver that monitors the
-// completion of all tasks executed by the current MessageLoop, recording the
-// number of tasks that refer to a specific function and filename.
-class SpdySessionTestTaskObserver : public base::MessageLoop::TaskObserver {
- public:
- // Creates a SpdySessionTaskObserver that will record all tasks that are
- // executed that were posted by the function named by |function_name|, located
- // in the file |file_name|.
- // Example:
- // file_name = "foo.cc"
- // function = "DoFoo"
- SpdySessionTestTaskObserver(const SpdyString& file_name,
- const SpdyString& function_name);
- ~SpdySessionTestTaskObserver() override;
-
- // Implements MessageLoop::TaskObserver.
- void WillProcessTask(const base::PendingTask& pending_task) override;
- void DidProcessTask(const base::PendingTask& pending_task) override;
-
- // Returns the number of tasks posted by the given function and file.
- uint16_t executed_count() const { return executed_count_; }
-
- private:
- uint16_t executed_count_;
- SpdyString file_name_;
- SpdyString function_name_;
-};
-
-} // namespace net
-
-#endif // NET_SPDY_SPDY_SESSION_TEST_UTIL_H_
« no previous file with comments | « net/spdy/spdy_session_pool_unittest.cc ('k') | net/spdy/spdy_session_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698