summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-10-24 15:22:06 -0700
committerJeff Brown <jeffbrown@google.com>2010-10-24 15:25:53 -0700
commit5e871b47ef9b252e24a9acdedd79b90dfbf65529 (patch)
treec1de301e59289ee9ac3fa95516624c3c03ce507c /libs
parentbc9f0531564e3c090ae14175d77091820945aa8b (diff)
downloadframeworks_native-5e871b47ef9b252e24a9acdedd79b90dfbf65529.zip
frameworks_native-5e871b47ef9b252e24a9acdedd79b90dfbf65529.tar.gz
frameworks_native-5e871b47ef9b252e24a9acdedd79b90dfbf65529.tar.bz2
Add test stubs for newly added methods.
Change-Id: I44139adebbbed1358f613fbcbfcddac6617ef5bd
Diffstat (limited to 'libs')
-rw-r--r--libs/ui/tests/InputReader_test.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/ui/tests/InputReader_test.cpp b/libs/ui/tests/InputReader_test.cpp
index de4b05a..c19147f 100644
--- a/libs/ui/tests/InputReader_test.cpp
+++ b/libs/ui/tests/InputReader_test.cpp
@@ -342,6 +342,12 @@ private:
ADD_FAILURE() << "Should never be called by input reader.";
}
+ virtual bool transferTouchFocus(const sp<InputChannel>& fromChannel,
+ const sp<InputChannel>& toChannel) {
+ ADD_FAILURE() << "Should never be called by input reader.";
+ return 0;
+ }
+
virtual status_t registerInputChannel(const sp<InputChannel>& inputChannel, bool monitor) {
ADD_FAILURE() << "Should never be called by input reader.";
return 0;
@@ -577,6 +583,13 @@ private:
return result;
}
+ virtual bool hasLed(int32_t deviceId, int32_t led) const {
+ return false;
+ }
+
+ virtual void setLedState(int32_t deviceId, int32_t led, bool on) {
+ }
+
virtual void dump(String8& dump) {
}
};