aboutsummaryrefslogtreecommitdiff
path: root/icing/store/usage-store_test.cc
diff options
context:
space:
mode:
authorTim Barron <tjbarron@google.com>2023-03-31 16:48:52 -0700
committerTim Barron <tjbarron@google.com>2023-03-31 16:48:52 -0700
commitb59049b030cc330b6c8ae1d03ea4c1a34235ac9b (patch)
tree09bb4692739de390a5ad70e5dc4f9acb7830fa3e /icing/store/usage-store_test.cc
parentf3155ae11285c16d8d9de56b1ec1a1e0def2cf62 (diff)
downloadicing-b59049b030cc330b6c8ae1d03ea4c1a34235ac9b.tar.gz
Update Icing from upstream.
Descriptions: ======================================================================== Make int64_t the CreateUsageReport timestamp type ======================================================================== Create ResultAdjustmentInfo and refactor ResultStateV2 ======================================================================== Wrap parent/child adjustment info to std::unique_ptr ======================================================================== Apply join child snippet ======================================================================== Apply join child projection ======================================================================== Add IntegerSectionIndexingHandlerTest ======================================================================== Delete Result Retriever this class is dead code. ======================================================================== Introduce a placeholder for the custom function hasPropertyDefined(member) ======================================================================== Fix libtextclassifier3::StatusOr ======================================================================== Performance improvements to SnippetRetriever. ======================================================================== Bug: 193244409 Bug: 256022027 Bug: 259744228 Bug: 268680462 Bug: 270102295 Bug: 271015984 Bug: 274627497 Change-Id: I6bad316b28bb289fa8e3f5b0982d6aaa9e0d135f
Diffstat (limited to 'icing/store/usage-store_test.cc')
-rw-r--r--icing/store/usage-store_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/icing/store/usage-store_test.cc b/icing/store/usage-store_test.cc
index b2dbe4b..2b17f13 100644
--- a/icing/store/usage-store_test.cc
+++ b/icing/store/usage-store_test.cc
@@ -44,7 +44,7 @@ class UsageStoreTest : public testing::Test {
};
UsageReport CreateUsageReport(std::string name_space, std::string uri,
- int64 timestamp_ms,
+ int64_t timestamp_ms,
UsageReport::UsageType usage_type) {
UsageReport usage_report;
usage_report.set_document_namespace(name_space);
@@ -450,7 +450,7 @@ TEST_F(UsageStoreTest, Reset) {
TEST_F(UsageStoreTest, TimestampInSecondsShouldNotOverflow) {
// Create a report with the max value of timestamps.
UsageReport usage_report = CreateUsageReport(
- "namespace", "uri", /*timestamp_ms=*/std::numeric_limits<int64>::max(),
+ "namespace", "uri", /*timestamp_ms=*/std::numeric_limits<int64_t>::max(),
UsageReport::USAGE_TYPE1);
ICING_ASSERT_OK_AND_ASSIGN(std::unique_ptr<UsageStore> usage_store,