Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Unified Diff: cc/resources/tile_priority_unittest.cc

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/tile_priority.cc ('k') | cc/resources/tile_task_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_priority_unittest.cc
diff --git a/cc/resources/tile_priority_unittest.cc b/cc/resources/tile_priority_unittest.cc
deleted file mode 100644
index e134bc976426c744b46548e593fa3a094882d7c8..0000000000000000000000000000000000000000
--- a/cc/resources/tile_priority_unittest.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 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 "cc/resources/tile_priority.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace cc {
-
-TEST(TilePriorityTest, IsHigherPriorityThan) {
- TilePriority now(HIGH_RESOLUTION, TilePriority::NOW, 0);
- TilePriority close_soon(HIGH_RESOLUTION, TilePriority::SOON, 1);
- TilePriority far_soon(HIGH_RESOLUTION, TilePriority::SOON, 500);
- TilePriority close_eventually(HIGH_RESOLUTION, TilePriority::EVENTUALLY, 2);
- TilePriority far_eventually(HIGH_RESOLUTION, TilePriority::EVENTUALLY, 1000);
- TilePriority non_ideal_now(NON_IDEAL_RESOLUTION, TilePriority::NOW, 0);
-
- EXPECT_FALSE(now.IsHigherPriorityThan(now));
- EXPECT_FALSE(now.IsHigherPriorityThan(non_ideal_now));
-
- EXPECT_TRUE(now.IsHigherPriorityThan(close_soon));
- EXPECT_TRUE(now.IsHigherPriorityThan(far_soon));
- EXPECT_TRUE(now.IsHigherPriorityThan(close_eventually));
- EXPECT_TRUE(now.IsHigherPriorityThan(far_eventually));
- EXPECT_TRUE(close_soon.IsHigherPriorityThan(far_soon));
- EXPECT_TRUE(close_soon.IsHigherPriorityThan(close_eventually));
- EXPECT_TRUE(close_soon.IsHigherPriorityThan(far_eventually));
- EXPECT_TRUE(far_soon.IsHigherPriorityThan(close_eventually));
- EXPECT_TRUE(far_soon.IsHigherPriorityThan(far_eventually));
- EXPECT_TRUE(close_eventually.IsHigherPriorityThan(far_eventually));
-
- EXPECT_FALSE(far_eventually.IsHigherPriorityThan(close_eventually));
- EXPECT_FALSE(far_eventually.IsHigherPriorityThan(far_soon));
- EXPECT_FALSE(far_eventually.IsHigherPriorityThan(close_soon));
- EXPECT_FALSE(far_eventually.IsHigherPriorityThan(now));
- EXPECT_FALSE(far_eventually.IsHigherPriorityThan(non_ideal_now));
- EXPECT_FALSE(close_eventually.IsHigherPriorityThan(far_soon));
- EXPECT_FALSE(close_eventually.IsHigherPriorityThan(close_soon));
- EXPECT_FALSE(close_eventually.IsHigherPriorityThan(now));
- EXPECT_FALSE(far_soon.IsHigherPriorityThan(close_soon));
- EXPECT_FALSE(far_soon.IsHigherPriorityThan(now));
- EXPECT_FALSE(close_soon.IsHigherPriorityThan(now));
-}
-
-} // namespace cc
« no previous file with comments | « cc/resources/tile_priority.cc ('k') | cc/resources/tile_task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698