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

Side by Side Diff: content/browser/browser_thread_impl.h

Issue 11649032: Flush SequenceWorkerPool tasks after each unit test. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_
6 #define CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ 6 #define CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_
7 7
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 static bool PostTaskHelper( 50 static bool PostTaskHelper(
51 BrowserThread::ID identifier, 51 BrowserThread::ID identifier,
52 const tracked_objects::Location& from_here, 52 const tracked_objects::Location& from_here,
53 const base::Closure& task, 53 const base::Closure& task,
54 base::TimeDelta delay, 54 base::TimeDelta delay,
55 bool nestable); 55 bool nestable);
56 56
57 // Common initialization code for the constructors. 57 // Common initialization code for the constructors.
58 void Initialize(); 58 void Initialize();
59 59
60 // For testing.
61 friend class ContentTestSuiteBaseListener;
62 static void FlushThreadPoolHelper();
63
60 // The identifier of this thread. Only one thread can exist with a given 64 // The identifier of this thread. Only one thread can exist with a given
61 // identifier at a given time. 65 // identifier at a given time.
62 ID identifier_; 66 ID identifier_;
63 }; 67 };
64 68
65 } // namespace content 69 } // namespace content
66 70
67 #endif // CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ 71 #endif // CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « base/threading/sequenced_worker_pool_unittest.cc ('k') | content/browser/browser_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698