OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "core/frame/DOMTimer.h" | 5 #include "core/frame/DOMTimer.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "bindings/core/v8/ScriptController.h" | 9 #include "bindings/core/v8/ScriptController.h" |
| 10 #include "bindings/core/v8/V8Binding.h" |
10 #include "core/dom/Document.h" | 11 #include "core/dom/Document.h" |
11 #include "core/layout/LayoutTestHelper.h" | 12 #include "core/layout/LayoutTestHelper.h" |
12 #include "platform/testing/TestingPlatformSupport.h" | 13 #include "platform/testing/TestingPlatformSupport.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 using testing::DoubleNear; | 17 using testing::DoubleNear; |
17 using testing::ElementsAreArray; | 18 using testing::ElementsAreArray; |
18 using testing::Matcher; | 19 using testing::Matcher; |
19 | 20 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 ExecuteScriptAndWaitUntilIdle(kSetIntervalScriptText); | 125 ExecuteScriptAndWaitUntilIdle(kSetIntervalScriptText); |
125 | 126 |
126 auto times(toDoubleArray(EvalExpression("times"), scope)); | 127 auto times(toDoubleArray(EvalExpression("times"), scope)); |
127 | 128 |
128 EXPECT_THAT(times, ElementsAreArray(kExpectedTimings)); | 129 EXPECT_THAT(times, ElementsAreArray(kExpectedTimings)); |
129 } | 130 } |
130 | 131 |
131 } // namespace | 132 } // namespace |
132 | 133 |
133 } // namespace blink | 134 } // namespace blink |
OLD | NEW |