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

Side by Side Diff: cc/tiles/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 unified diff | Download patch
« no previous file with comments | « cc/tiles/tile_priority.cc ('k') | cc/tiles/tiling_set_eviction_queue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/resources/tile_priority.h" 5 #include "cc/tiles/tile_priority.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 7
8 namespace cc { 8 namespace cc {
9 9
10 TEST(TilePriorityTest, IsHigherPriorityThan) { 10 TEST(TilePriorityTest, IsHigherPriorityThan) {
11 TilePriority now(HIGH_RESOLUTION, TilePriority::NOW, 0); 11 TilePriority now(HIGH_RESOLUTION, TilePriority::NOW, 0);
12 TilePriority close_soon(HIGH_RESOLUTION, TilePriority::SOON, 1); 12 TilePriority close_soon(HIGH_RESOLUTION, TilePriority::SOON, 1);
13 TilePriority far_soon(HIGH_RESOLUTION, TilePriority::SOON, 500); 13 TilePriority far_soon(HIGH_RESOLUTION, TilePriority::SOON, 500);
14 TilePriority close_eventually(HIGH_RESOLUTION, TilePriority::EVENTUALLY, 2); 14 TilePriority close_eventually(HIGH_RESOLUTION, TilePriority::EVENTUALLY, 2);
15 TilePriority far_eventually(HIGH_RESOLUTION, TilePriority::EVENTUALLY, 1000); 15 TilePriority far_eventually(HIGH_RESOLUTION, TilePriority::EVENTUALLY, 1000);
(...skipping 20 matching lines...) Expand all
36 EXPECT_FALSE(far_eventually.IsHigherPriorityThan(non_ideal_now)); 36 EXPECT_FALSE(far_eventually.IsHigherPriorityThan(non_ideal_now));
37 EXPECT_FALSE(close_eventually.IsHigherPriorityThan(far_soon)); 37 EXPECT_FALSE(close_eventually.IsHigherPriorityThan(far_soon));
38 EXPECT_FALSE(close_eventually.IsHigherPriorityThan(close_soon)); 38 EXPECT_FALSE(close_eventually.IsHigherPriorityThan(close_soon));
39 EXPECT_FALSE(close_eventually.IsHigherPriorityThan(now)); 39 EXPECT_FALSE(close_eventually.IsHigherPriorityThan(now));
40 EXPECT_FALSE(far_soon.IsHigherPriorityThan(close_soon)); 40 EXPECT_FALSE(far_soon.IsHigherPriorityThan(close_soon));
41 EXPECT_FALSE(far_soon.IsHigherPriorityThan(now)); 41 EXPECT_FALSE(far_soon.IsHigherPriorityThan(now));
42 EXPECT_FALSE(close_soon.IsHigherPriorityThan(now)); 42 EXPECT_FALSE(close_soon.IsHigherPriorityThan(now));
43 } 43 }
44 44
45 } // namespace cc 45 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/tile_priority.cc ('k') | cc/tiles/tiling_set_eviction_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698