OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "ios/web/public/test/test_web_thread.h" | 5 #include "ios/web/public/test/test_web_thread.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/message_loop/message_loop.h" |
8 #include "ios/web/web_thread_impl.h" | 9 #include "ios/web/web_thread_impl.h" |
9 | 10 |
10 namespace web { | 11 namespace web { |
11 | 12 |
12 class TestWebThreadImpl : public WebThreadImpl { | 13 class TestWebThreadImpl : public WebThreadImpl { |
13 public: | 14 public: |
14 TestWebThreadImpl(WebThread::ID identifier) : WebThreadImpl(identifier) {} | 15 TestWebThreadImpl(WebThread::ID identifier) : WebThreadImpl(identifier) {} |
15 | 16 |
16 TestWebThreadImpl(WebThread::ID identifier, base::MessageLoop* message_loop) | 17 TestWebThreadImpl(WebThread::ID identifier, base::MessageLoop* message_loop) |
17 : WebThreadImpl(identifier, message_loop) {} | 18 : WebThreadImpl(identifier, message_loop) {} |
(...skipping 29 matching lines...) Expand all Loading... |
47 | 48 |
48 void TestWebThread::Stop() { | 49 void TestWebThread::Stop() { |
49 impl_->Stop(); | 50 impl_->Stop(); |
50 } | 51 } |
51 | 52 |
52 bool TestWebThread::IsRunning() { | 53 bool TestWebThread::IsRunning() { |
53 return impl_->IsRunning(); | 54 return impl_->IsRunning(); |
54 } | 55 } |
55 | 56 |
56 } // namespace web | 57 } // namespace web |
OLD | NEW |