Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfx_datetime_unittest.cpp
Go to the documentation of this file.
1// Copyright 2021 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "core/fxcrt/cfx_datetime.h"
6
7#include "core/fxcrt/fake_time_test.h"
8
11 EXPECT_EQ(2020, dt.GetYear());
12 EXPECT_EQ(4, dt.GetMonth());
13 EXPECT_EQ(23, dt.GetDay());
14 EXPECT_EQ(15, dt.GetHour());
15 EXPECT_EQ(5, dt.GetMinute());
16 EXPECT_EQ(21, dt.GetSecond());
17 EXPECT_EQ(0, dt.GetMillisecond());
18}
TEST_F(FakeTimeTest, Now)
int32_t GetYear() const
static CFX_DateTime Now()
uint8_t GetSecond() const
uint8_t GetHour() const
uint8_t GetDay() const
uint8_t GetMinute() const
uint16_t GetMillisecond() const
uint8_t GetMonth() const