diff options
| author | 2011-04-25 16:40:05 -0700 | |
|---|---|---|
| committer | 2011-04-25 16:40:05 -0700 | |
| commit | fc850124b35abd00a31e9bcf57e14e0fa74f4cd7 (patch) | |
| tree | 72c433edd618825239a7a48ed06f7b19d41ea770 | |
| parent | 65fcadccbfcbde532f2cabc6154abe409cef636d (diff) | |
libgui: Fix the tests so they build.
Change-Id: I7205b0819e5801ac549109ff562c3ab1b113d176
| -rw-r--r-- | libs/gui/tests/SurfaceTexture_test.cpp | 2 | ||||
| -rw-r--r-- | libs/gui/tests/Surface_test.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/tests/SurfaceTexture_test.cpp b/libs/gui/tests/SurfaceTexture_test.cpp index 4184463496..6c713439dc 100644 --- a/libs/gui/tests/SurfaceTexture_test.cpp +++ b/libs/gui/tests/SurfaceTexture_test.cpp @@ -76,7 +76,7 @@ protected: mComposerClient = new SurfaceComposerClient; ASSERT_EQ(NO_ERROR, mComposerClient->initCheck()); - mSurfaceControl = mComposerClient->createSurface(getpid(), + mSurfaceControl = mComposerClient->createSurface( String8("Test Surface"), 0, getSurfaceWidth(), getSurfaceHeight(), PIXEL_FORMAT_RGB_888, 0); diff --git a/libs/gui/tests/Surface_test.cpp b/libs/gui/tests/Surface_test.cpp index fd07479a05..440a48b7c0 100644 --- a/libs/gui/tests/Surface_test.cpp +++ b/libs/gui/tests/Surface_test.cpp @@ -30,7 +30,7 @@ protected: mComposerClient = new SurfaceComposerClient; ASSERT_EQ(NO_ERROR, mComposerClient->initCheck()); - mSurfaceControl = mComposerClient->createSurface(getpid(), + mSurfaceControl = mComposerClient->createSurface( String8("Test Surface"), 0, 32, 32, PIXEL_FORMAT_RGB_888, 0); ASSERT_TRUE(mSurfaceControl != NULL); |