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

Side by Side Diff: net/quic/test_tools/test_task_runner.h

Issue 126283002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed extra space Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/test_tools/simple_quic_framer.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Common utilities for Quic tests 5 // Common utilities for Quic tests
6 6
7 #ifndef NET_QUIC_TEST_TOOLS_TEST_TASK_RUNNER_H_ 7 #ifndef NET_QUIC_TEST_TOOLS_TEST_TASK_RUNNER_H_
8 #define NET_QUIC_TEST_TOOLS_TEST_TASK_RUNNER_H_ 8 #define NET_QUIC_TEST_TOOLS_TEST_TASK_RUNNER_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 virtual bool PostDelayedTask(const tracked_objects::Location& from_here, 29 virtual bool PostDelayedTask(const tracked_objects::Location& from_here,
30 const base::Closure& task, 30 const base::Closure& task,
31 base::TimeDelta delay) OVERRIDE; 31 base::TimeDelta delay) OVERRIDE;
32 virtual bool RunsTasksOnCurrentThread() const OVERRIDE; 32 virtual bool RunsTasksOnCurrentThread() const OVERRIDE;
33 33
34 const std::vector<PostedTask>& GetPostedTasks() const; 34 const std::vector<PostedTask>& GetPostedTasks() const;
35 35
36 void RunNextTask(); 36 void RunNextTask();
37 37
38 protected: 38 protected:
39 virtual ~TestTaskRunner(); 39 virtual ~TestTaskRunner() OVERRIDE;
40 40
41 private: 41 private:
42 std::vector<PostedTask>::iterator FindNextTask(); 42 std::vector<PostedTask>::iterator FindNextTask();
43 43
44 MockClock* const clock_; 44 MockClock* const clock_;
45 std::vector<PostedTask> tasks_; 45 std::vector<PostedTask> tasks_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(TestTaskRunner); 47 DISALLOW_COPY_AND_ASSIGN(TestTaskRunner);
48 }; 48 };
49 49
50 } // namespace test 50 } // namespace test
51 51
52 } // namespace net 52 } // namespace net
53 53
54 #endif // NET_QUIC_TEST_TOOLS_TEST_TASK_RUNNER_H_ 54 #endif // NET_QUIC_TEST_TOOLS_TEST_TASK_RUNNER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/simple_quic_framer.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698