Move //net/spdy/chromium to //net/spdy.

This change was made possible by https://crrev.com/c/1028984, which left
chromium as the only directory in //net/spdy.

This change is not git cl formatted, and presubmit checks are skipped
(there are pre-existing presubmit errors), because this is only a move.

NOPRESUBMIT=true

Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I670e6e7204870a78d738b7e2fe18569b6c8f0264
Reviewed-on: https://chromium-review.googlesource.com/1054470
Reviewed-by: Ryan Hamilton <[email protected]>
Reviewed-by: Ramin Halavati <[email protected]>
Reviewed-by: Mike Dougherty <[email protected]>
Commit-Queue: Bence Béky <[email protected]>
Cr-Commit-Position: refs/heads/master@{#557975}
diff --git a/net/spdy/spdy_session_test_util.h b/net/spdy/spdy_session_test_util.h
new file mode 100644
index 0000000..a41d03d
--- /dev/null
+++ b/net/spdy/spdy_session_test_util.h
@@ -0,0 +1,46 @@
+// 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/third_party/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_