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_TEST_SYSTEM_MESSAGE_HANDLER_LINK_ANDROID_H |
| 6 #define BASE_TEST_SYSTEM_MESSAGE_HANDLER_LINK_ANDROID_H |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/message_loop/message_pump.h" |
| 12 |
| 13 namespace base { |
| 14 |
| 15 class MessagePumpForUI; |
| 16 class WaitableEvent; |
| 17 |
| 18 namespace android { |
| 19 class TestJavaMessageHandlerFactory; |
| 20 |
| 21 // This provides a link to (a way to create) the java-side |
| 22 // TestSystemMessageHandler class. |
| 23 class TestSystemMessageHandlerLink { |
| 24 public: |
| 25 static bool RegisterJNI(JNIEnv* env); |
| 26 |
| 27 private: |
| 28 friend class base::android::TestJavaMessageHandlerFactory; |
| 29 |
| 30 TestSystemMessageHandlerLink() = delete; |
| 31 ~TestSystemMessageHandlerLink() = delete; |
| 32 |
| 33 static base::android::ScopedJavaLocalRef<jobject> |
| 34 CreateTestSystemMessageHandler(JNIEnv* env, |
| 35 base::MessagePump::Delegate* delegate, |
| 36 MessagePumpForUI* message_pump, |
| 37 WaitableEvent* test_done_event); |
| 38 }; |
| 39 |
| 40 } // namespace android |
| 41 } // namespace base |
| 42 |
| 43 #endif // BASE_TEST_SYSTEM_MESSAGE_HANDLER_LINK_ANDROID_H |
OLD | NEW |