| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 #include "public/web/WebViewClient.h" | 114 #include "public/web/WebViewClient.h" |
| 115 #include "web/WebLocalFrameImpl.h" | 115 #include "web/WebLocalFrameImpl.h" |
| 116 #include "web/WebRemoteFrameImpl.h" | 116 #include "web/WebRemoteFrameImpl.h" |
| 117 #include "web/WebViewImpl.h" | 117 #include "web/WebViewImpl.h" |
| 118 #include "web/tests/FrameTestHelpers.h" | 118 #include "web/tests/FrameTestHelpers.h" |
| 119 #include "wtf/Forward.h" | 119 #include "wtf/Forward.h" |
| 120 #include "wtf/dtoa/utils.h" | 120 #include "wtf/dtoa/utils.h" |
| 121 #include <gmock/gmock.h> | 121 #include <gmock/gmock.h> |
| 122 #include <gtest/gtest.h> | 122 #include <gtest/gtest.h> |
| 123 #include <map> | 123 #include <map> |
| 124 #include <stdarg.h> |
| 124 #include <v8.h> | 125 #include <v8.h> |
| 125 | 126 |
| 126 using blink::URLTestHelpers::toKURL; | 127 using blink::URLTestHelpers::toKURL; |
| 127 using blink::FrameTestHelpers::UseMockScrollbarSettings; | 128 using blink::FrameTestHelpers::UseMockScrollbarSettings; |
| 128 using blink::testing::runPendingTasks; | 129 using blink::testing::runPendingTasks; |
| 129 using testing::ElementsAre; | 130 using testing::ElementsAre; |
| 130 using ::testing::Mock; | 131 using ::testing::Mock; |
| 131 | 132 |
| 132 namespace blink { | 133 namespace blink { |
| 133 | 134 |
| (...skipping 7592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7726 TEST_F(WebFrameTest, OrientationFrameDetach) | 7727 TEST_F(WebFrameTest, OrientationFrameDetach) |
| 7727 { | 7728 { |
| 7728 RuntimeEnabledFeatures::setOrientationEventEnabled(true); | 7729 RuntimeEnabledFeatures::setOrientationEventEnabled(true); |
| 7729 registerMockedHttpURLLoad("orientation-frame-detach.html"); | 7730 registerMockedHttpURLLoad("orientation-frame-detach.html"); |
| 7730 FrameTestHelpers::WebViewHelper webViewHelper; | 7731 FrameTestHelpers::WebViewHelper webViewHelper; |
| 7731 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(m_baseURL + "orie
ntation-frame-detach.html", true); | 7732 WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(m_baseURL + "orie
ntation-frame-detach.html", true); |
| 7732 webViewImpl->mainFrameImpl()->sendOrientationChangeEvent(); | 7733 webViewImpl->mainFrameImpl()->sendOrientationChangeEvent(); |
| 7733 } | 7734 } |
| 7734 | 7735 |
| 7735 } // namespace blink | 7736 } // namespace blink |
| OLD | NEW |