| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "chrome/browser/resource_coordinator/lifecycle_unit.h" |
| #include "base/time/time.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| namespace resource_coordinator { |
| TEST(LifecycleUnitTest, SortKeyComparison) { |
| constexpr base::TimeTicks kBaseTime; |
| LifecycleUnit::SortKey a(kBaseTime); |
| LifecycleUnit::SortKey b(kBaseTime + base::Hours(1)); |
| LifecycleUnit::SortKey c(kBaseTime + base::Hours(2)); |
| } // namespace resource_coordinator |