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

Unified Diff: cc/output/begin_frame_args_unittest.cc

Issue 1165853002: Pipe impl_latency_takes_priority_ to the RenderScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 6 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
Index: cc/output/begin_frame_args_unittest.cc
diff --git a/cc/output/begin_frame_args_unittest.cc b/cc/output/begin_frame_args_unittest.cc
index 4521c1b760d2408ee29f0f3914463666ab93f5bb..a8606d832cb6a796ce1c2cccf98172afd13968ef 100644
--- a/cc/output/begin_frame_args_unittest.cc
+++ b/cc/output/begin_frame_args_unittest.cc
@@ -77,16 +77,18 @@ TEST(BeginFrameArgsTest, Create) {
// BeginFrames are not valid by default
BeginFrameArgs args1;
EXPECT_FALSE(args1.IsValid()) << args1;
+ EXPECT_FALSE(args1.on_critical_path);
BeginFrameArgs args2 = BeginFrameArgs::Create(
BEGINFRAME_FROM_HERE, base::TimeTicks::FromInternalValue(1),
base::TimeTicks::FromInternalValue(2),
- base::TimeDelta::FromInternalValue(3), BeginFrameArgs::NORMAL);
+ base::TimeDelta::FromInternalValue(3), BeginFrameArgs::NORMAL, true);
EXPECT_TRUE(args2.IsValid()) << args2;
EXPECT_EQ(1, args2.frame_time.ToInternalValue()) << args2;
EXPECT_EQ(2, args2.deadline.ToInternalValue()) << args2;
EXPECT_EQ(3, args2.interval.ToInternalValue()) << args2;
EXPECT_EQ(BeginFrameArgs::NORMAL, args2.type) << args2;
+ EXPECT_TRUE(args2.on_critical_path);
}
#ifndef NDEBUG

Powered by Google App Engine
This is Rietveld 408576698