| 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/IDLTypes.h" | 9 #include "bindings/core/v8/IDLTypes.h" |
| 10 #include "bindings/core/v8/NativeValueTraitsImpl.h" | 10 #include "bindings/core/v8/NativeValueTraitsImpl.h" |
| 11 #include "bindings/core/v8/ScriptController.h" | 11 #include "bindings/core/v8/ScriptController.h" |
| 12 #include "bindings/core/v8/ScriptSourceCode.h" | 12 #include "bindings/core/v8/ScriptSourceCode.h" |
| 13 #include "bindings/core/v8/V8Binding.h" | 13 #include "bindings/core/v8/V8BindingForCore.h" |
| 14 #include "core/dom/Document.h" | 14 #include "core/dom/Document.h" |
| 15 #include "core/layout/LayoutTestHelper.h" | 15 #include "core/layout/LayoutTestHelper.h" |
| 16 #include "platform/testing/TestingPlatformSupport.h" | 16 #include "platform/testing/TestingPlatformSupport.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 using testing::DoubleNear; | 20 using testing::DoubleNear; |
| 21 using testing::ElementsAreArray; | 21 using testing::ElementsAreArray; |
| 22 using testing::Matcher; | 22 using testing::Matcher; |
| 23 | 23 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 ExecuteScriptAndWaitUntilIdle(kSetIntervalScriptText); | 157 ExecuteScriptAndWaitUntilIdle(kSetIntervalScriptText); |
| 158 | 158 |
| 159 auto times(ToDoubleArray(EvalExpression("times"), scope)); | 159 auto times(ToDoubleArray(EvalExpression("times"), scope)); |
| 160 | 160 |
| 161 EXPECT_THAT(times, ElementsAreArray(kExpectedTimings)); | 161 EXPECT_THAT(times, ElementsAreArray(kExpectedTimings)); |
| 162 } | 162 } |
| 163 | 163 |
| 164 } // namespace | 164 } // namespace |
| 165 | 165 |
| 166 } // namespace blink | 166 } // namespace blink |
| OLD | NEW |