chromium/v8/test/cctest/heap/test-external-string-tracker.cc

// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/api/api-inl.h"
#include "src/api/api.h"
#include "src/execution/isolate.h"
#include "src/heap/heap-inl.h"
#include "src/heap/spaces.h"
#include "src/objects/objects-inl.h"
#include "test/cctest/cctest.h"
#include "test/cctest/heap/heap-tester.h"
#include "test/cctest/heap/heap-utils.h"

#define TEST_STR

namespace v8 {
namespace internal {
namespace heap {

// Adapted from cctest/test-api.cc
class TestOneByteResource : public v8::String::ExternalOneByteStringResource {};

TEST(ExternalString_ExternalBackingStoreSizeIncreases) {}

TEST(ExternalString_ExternalBackingStoreSizeDecreases) {}

TEST(ExternalString_ExternalBackingStoreSizeIncreasesMarkCompact) {}

TEST(ExternalString_ExternalBackingStoreSizeIncreasesAfterExternalization) {}

TEST(ExternalString_PromotedThinString) {}
}  // namespace heap
}  // namespace internal
}  // namespace v8

#undef TEST_STR