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