#include "src/date/date.h"
#include "src/execution/isolate.h"
#include "src/handles/global-handles.h"
#include "src/init/v8.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace internal {
class DateTest : public TestWithContext { … };
class DateCacheMock : public DateCache { … };
static int64_t TimeFromYearMonthDay(DateCache* date_cache, int year, int month,
int day) { … }
TEST_F(DateTest, DaylightSavingsTime) { … }
namespace {
int legacy_parse_count = …;
void DateParseLegacyCounterCallback(v8::Isolate* isolate,
v8::Isolate::UseCounterFeature feature) { … }
}
TEST_F(DateTest, DateParseLegacyUseCounter) { … }
}
}