diff options
Diffstat (limited to 'libs/gui/tests/Surface_test.cpp')
-rw-r--r-- | libs/gui/tests/Surface_test.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libs/gui/tests/Surface_test.cpp b/libs/gui/tests/Surface_test.cpp index 3f495f8..cf0043d 100644 --- a/libs/gui/tests/Surface_test.cpp +++ b/libs/gui/tests/Surface_test.cpp @@ -14,8 +14,6 @@ * limitations under the License. */ -#include "DummyConsumer.h" - #include <gtest/gtest.h> #include <binder/IMemory.h> @@ -212,20 +210,4 @@ TEST_F(SurfaceTest, SettingGenerationNumber) { ASSERT_EQ(1U, graphicBuffer->getGenerationNumber()); } -TEST_F(SurfaceTest, GetConsumerName) { - sp<IGraphicBufferProducer> producer; - sp<IGraphicBufferConsumer> consumer; - BufferQueue::createBufferQueue(&producer, &consumer); - - sp<DummyConsumer> dummyConsumer(new DummyConsumer); - consumer->consumerConnect(dummyConsumer, false); - consumer->setConsumerName(String8("TestConsumer")); - - sp<Surface> surface = new Surface(producer); - sp<ANativeWindow> window(surface); - native_window_api_connect(window.get(), NATIVE_WINDOW_API_CPU); - - EXPECT_STREQ("TestConsumer", surface->getConsumerName().string()); -} - } |