commit | a74a98890cc1b6f591734170eeda72cfce732b99 | [log] [tgz] |
---|---|---|
author | Kevin Lubick <kjlubick@google.com> | Wed Sep 06 12:58:33 2023 +0000 |
committer | Kevin Lubick <kjlubick@google.com> | Wed Sep 06 12:59:30 2023 +0000 |
tree | ecbdadd5c92c6f4b1752fcbd52ec7cb6d134e67d | |
parent | bd391577d4a62f3a7bf633817f4a8f5b9aa3f1ee [diff] [blame] |
Reland "Remove SkTime from the public API" This reverts commit bd391577d4a62f3a7bf633817f4a8f5b9aa3f1ee. Reason for revert: Should not have been reverted, previous issue was fixed Original change's description: > Revert "Remove SkTime from the public API" > > This reverts commit a0572041af8e5317da14dd8fced3c72196545abb. > > Reason for revert: causing Google3 breakage > https://fusion2.corp.google.com/triage/615500517562051498/10304141939179520/invocations/0e55b3cd-e449-411e-8c56-61adc92f6f0d/targets/%2F%2Fjavatests%2Fcom%2Fgoogle%2Fandroid%2Fwearable%2Ffitbit%2Fecg%2Fapi:EcgApiFitbitTest/log > > Original change's description: > > Remove SkTime from the public API > > > > Change-Id: Ie310d9dad9f22bed5317568b9d862ec58dc3a66e > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/749817 > > Reviewed-by: Herb Derby <herb@google.com> > > Commit-Queue: Kevin Lubick <kjlubick@google.com> > > Change-Id: Ib267ad2b9bacc3cb3093f18912e8779f60bb11cd > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/752276 > Auto-Submit: John Stiles <johnstiles@google.com> > Reviewed-by: Herb Derby <herb@google.com> > Commit-Queue: Herb Derby <herb@google.com> Change-Id: I920bd49424dd98fc577857e9a842d6bb968c3286 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/752201 Owners-Override: Kevin Lubick <kjlubick@google.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
diff --git a/tests/PDFMetadataAttributeTest.cpp b/tests/PDFMetadataAttributeTest.cpp index 9aefbd6..e5ec11c 100644 --- a/tests/PDFMetadataAttributeTest.cpp +++ b/tests/PDFMetadataAttributeTest.cpp
@@ -4,13 +4,16 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ +#include "include/core/SkTypes.h" + +#ifdef SK_SUPPORT_PDF #include "include/core/SkData.h" #include "include/core/SkDocument.h" #include "include/core/SkRefCnt.h" #include "include/core/SkStream.h" #include "include/core/SkString.h" -#include "include/core/SkTime.h" #include "include/docs/SkPDFDocument.h" +#include "src/pdf/SkPDFUtils.h" #include "tests/Test.h" #include <cstdint> @@ -18,8 +21,8 @@ DEF_TEST(SkPDF_Metadata, r) { REQUIRE_PDF_DOCUMENT(SkPDF_Metadata, r); - SkTime::DateTime now; - SkTime::GetDateTime(&now); + SkPDF::DateTime now; + SkPDFUtils::GetDateTime(&now); SkPDF::Metadata metadata; metadata.fTitle = "A1"; metadata.fAuthor = "A2"; @@ -60,3 +63,4 @@ } } } +#endif