Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 364723d5 authored by Nolan Scobie's avatar Nolan Scobie Committed by Automerger Merge Worker
Browse files

Fix GraphicsStats#findRootPath and disable CacheManager#trimMemory tests am:...

Fix GraphicsStats#findRootPath and disable CacheManager#trimMemory tests am: 24921a03 am: 600da2e0

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2379069



Change-Id: I9ecde4a51a6b63cad0d6e272b0a51a2a96e58e8f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 6cdde645 600da2e0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -32,7 +32,8 @@ static size_t getCacheUsage(GrDirectContext* grContext) {
    return cacheUsage;
}

RENDERTHREAD_SKIA_PIPELINE_TEST(CacheManager, trimMemory) {
// TOOD(258700630): fix this test and re-enable
RENDERTHREAD_SKIA_PIPELINE_TEST(CacheManager, DISABLED_trimMemory) {
    int32_t width = DeviceInfo::get()->getWidth();
    int32_t height = DeviceInfo::get()->getHeight();
    GrDirectContext* grContext = renderThread.getGrContext();
+5 −9
Original line number Diff line number Diff line
@@ -14,17 +14,17 @@
 * limitations under the License.
 */

#include <android-base/macros.h>
#include <gtest/gtest.h>

#include "protos/graphicsstats.pb.h"
#include "service/GraphicsStatsService.h"

#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

#include "protos/graphicsstats.pb.h"
#include "service/GraphicsStatsService.h"

using namespace android;
using namespace android::uirenderer;

@@ -49,11 +49,7 @@ std::string findRootPath() {

// No code left untested
TEST(GraphicsStats, findRootPath) {
#ifdef __LP64__
    std::string expected = "/data/nativetest64/hwui_unit_tests";
#else
    std::string expected = "/data/nativetest/hwui_unit_tests";
#endif
    std::string expected = "/data/local/tmp/nativetest/hwui_unit_tests/" ABI_STRING;
    EXPECT_EQ(expected, findRootPath());
}