diff --git a/graphic/graphicnapitest/NativeWindowTest.cpp b/graphic/graphicnapitest/NativeWindowTest.cpp index d63830286fd383045db0a6b625ad16f5c40aefe4..b70dd5d5c8879346902a4a846a5193df0575c089 100644 --- a/graphic/graphicnapitest/NativeWindowTest.cpp +++ b/graphic/graphicnapitest/NativeWindowTest.cpp @@ -19,6 +19,7 @@ #include "surface_type.h" #include "buffer_log.h" #include "external_window.h" +#include "iconsumer_surface.h" using namespace testing; using namespace testing::ext; @@ -72,7 +73,7 @@ public: static inline BufferRequestConfig requestConfig = {}; static inline BufferFlushConfig flushConfig = {}; - static inline sptr cSurface = nullptr; + static inline sptr cSurface = nullptr; static inline sptr producer = nullptr; static inline sptr pSurface = nullptr; static inline sptr sBuffer = nullptr; @@ -92,7 +93,7 @@ void NativeWindowTest::SetUpTestCase() .timeout = 0, }; - cSurface = Surface::CreateSurfaceAsConsumer(); + cSurface = IConsumerSurface::Create(); sptr listener = new BufferConsumerListener(); cSurface->RegisterConsumerListener(listener); producer = cSurface->GetProducer();