Home
last modified time | relevance | path

Searched refs:StaleOK (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/unittests/support/
DFileCacheTests.cpp60 auto StaleOK = std::chrono::steady_clock::now(); in TEST() local
61 auto MustBeFresh = StaleOK + std::chrono::hours(1); in TEST()
64 EXPECT_EQ("a", C.get(StaleOK, /*ExpectParse=*/true)) << "Parsed first time"; in TEST()
65 EXPECT_EQ("a", C.get(StaleOK, /*ExpectParse=*/false)) << "Cached (time)"; in TEST()
68 EXPECT_EQ("a", C.get(StaleOK, /*ExpectParse=*/false)) << "Cached (time)"; in TEST()
72 EXPECT_EQ("bb", C.get(StaleOK, /*ExpectParse=*/false)) << "Cached (time)"; in TEST()
76 EXPECT_EQ("", C.get(StaleOK, /*ExpectParse=*/false)) << "Cached (time)"; in TEST()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DConfigProviderTests.cpp170 Params StaleOK; in TEST() local
171 StaleOK.FreshTime = StartTime; in TEST()
179 auto Cfg = P->getConfig(StaleOK, Diags.callback()); in TEST()
187 Cfg = P->getConfig(StaleOK, Diags.callback()); in TEST()