OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BASE_ANDROID_JAVA_HANDLER_THREAD_FOR_TESTING_H_ |
| 6 #define BASE_ANDROID_JAVA_HANDLER_THREAD_FOR_TESTING_H_ |
| 7 |
| 8 #include "base/android/java_handler_thread.h" |
| 9 |
| 10 namespace base { |
| 11 |
| 12 // class WaitableEvent; |
| 13 |
| 14 namespace android { |
| 15 |
| 16 class JavaHandlerThreadForTesting : public JavaHandlerThread { |
| 17 public: |
| 18 JavaHandlerThreadForTesting(const char* name, |
| 19 base::WaitableEvent* test_done_event); |
| 20 virtual ~JavaHandlerThreadForTesting(); |
| 21 |
| 22 void StartMessageLoop() override; |
| 23 void StopMessageLoop() override; |
| 24 |
| 25 private: |
| 26 base::WaitableEvent* test_done_event_; |
| 27 }; |
| 28 |
| 29 } // namespace android |
| 30 } // namespace base |
| 31 |
| 32 #endif // BASE_ANDROID_JAVA_HANDLER_THREAD_FOR_TESTING_H_ |
OLD | NEW |