OLD | NEW |
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_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ |
6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 // Stops the thread. | 41 // Stops the thread. |
42 void Stop(); | 42 void Stop(); |
43 | 43 |
44 // Returns true if the thread is running. | 44 // Returns true if the thread is running. |
45 bool IsRunning(); | 45 bool IsRunning(); |
46 | 46 |
47 // Returns a Thread pointer for the thread. This should not be used | 47 // Returns a Thread pointer for the thread. This should not be used |
48 // in new tests. | 48 // in new tests. |
49 base::Thread* DeprecatedGetThreadObject(); | 49 base::Thread* DeprecatedGetThreadObject(); |
50 | 50 |
51 // Sets the message loop to use for the thread. This should not be | |
52 // used in new tests. | |
53 void DeprecatedSetMessageLoop(MessageLoop* loop); | |
54 | |
55 private: | 51 private: |
56 scoped_ptr<TestBrowserThreadImpl> impl_; | 52 scoped_ptr<TestBrowserThreadImpl> impl_; |
57 | 53 |
58 DISALLOW_COPY_AND_ASSIGN(TestBrowserThread); | 54 DISALLOW_COPY_AND_ASSIGN(TestBrowserThread); |
59 }; | 55 }; |
60 | 56 |
61 } // namespace content | 57 } // namespace content |
62 | 58 |
63 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ | 59 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_THREAD_H_ |
OLD | NEW |