OSDN Git Service

Remove Context from mockContentResolver to avoid a Null Pointer Exception
authorAjay Panicker <apanicke@google.com>
Wed, 22 Mar 2017 23:29:56 +0000 (16:29 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 22 Mar 2017 23:32:19 +0000 (23:32 +0000)
commitacc87cca571c89322980423e190b188fdd8fa265
treeb029ea73d54dca326f014e87c01497fea588a6dd
parent048d5aaff9f9b545c09dd22042ae6d96137c5f7c
Remove Context from mockContentResolver to avoid a Null Pointer Exception

mockContentResolver was updated to call a function on the context provided
in its constructor which caused an exception with mockContext. Instead leaving
the context out of the constructor skips this function call and doesn't affect
the test.

Test: Run unit tests with "runtest bluetooth"
Change-Id: I7a597c5864943d3d53dcb551bf3d3bafb4beb5ed
tests/src/com/android/bluetooth/map/BluetoothMapContentObserverTest.java