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

Unified Diff: third_party/WebKit/Source/core/frame/DOMTimerTest.cpp

Issue 2812643002: Fix names of local constants after blink rename. (Closed)
Patch Set: Created 3 years, 8 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: third_party/WebKit/Source/core/frame/DOMTimerTest.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMTimerTest.cpp b/third_party/WebKit/Source/core/frame/DOMTimerTest.cpp
index e37c6d7e04fd2de33062ed1829e50495ab116224..aa9d2e0fb4dd077e1304ae88115b34c269a1ea21 100644
--- a/third_party/WebKit/Source/core/frame/DOMTimerTest.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMTimerTest.cpp
@@ -30,7 +30,7 @@ class DOMTimerTest : public RenderingTest {
// Expected time between each iterator for setInterval(..., 1) or nested
// setTimeout(..., 1) are 1, 1, 1, 1, 4, 4, ... as a minumum clamp of 4m
// is applied from the 5th iteration onwards.
- const std::vector<Matcher<double>> k_expected_timings = {
+ const std::vector<Matcher<double>> kExpectedTimings = {
DoubleNear(1., 0.000001), DoubleNear(1., 0.000001),
DoubleNear(1., 0.000001), DoubleNear(1., 0.000001),
DoubleNear(4., 0.000001), DoubleNear(4., 0.000001),
@@ -90,7 +90,7 @@ TEST_F(DOMTimerTest, setTimeout_ClampsAfter4Nestings) {
auto times(ToDoubleArray(EvalExpression("times"), scope));
- EXPECT_THAT(times, ElementsAreArray(k_expected_timings));
+ EXPECT_THAT(times, ElementsAreArray(kExpectedTimings));
}
const char* g_k_set_interval_script_text =
Dan Elphick 2017/04/10 14:55:43 There's also this constant that got renamed. Sorr
Nico 2017/04/10 15:21:40 Can you expand on this? The idea behind all this r
Dan Elphick 2017/04/10 15:33:58 I just meant I created these constants before you
@@ -113,7 +113,7 @@ TEST_F(DOMTimerTest, setInterval_ClampsAfter4Iterations) {
auto times(ToDoubleArray(EvalExpression("times"), scope));
- EXPECT_THAT(times, ElementsAreArray(k_expected_timings));
+ EXPECT_THAT(times, ElementsAreArray(kExpectedTimings));
}
TEST_F(DOMTimerTest, setInterval_NestingResetsForLaterCalls) {
@@ -128,7 +128,7 @@ TEST_F(DOMTimerTest, setInterval_NestingResetsForLaterCalls) {
auto times(ToDoubleArray(EvalExpression("times"), scope));
- EXPECT_THAT(times, ElementsAreArray(k_expected_timings));
+ EXPECT_THAT(times, ElementsAreArray(kExpectedTimings));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698