| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 #include "WebFrame.h" | 33 #include "WebFrame.h" |
| 34 #include "WebFrameClient.h" | 34 #include "WebFrameClient.h" |
| 35 #include "WebInputEvent.h" | 35 #include "WebInputEvent.h" |
| 36 #include "WebView.h" | 36 #include "WebView.h" |
| 37 #include "WebViewClient.h" | 37 #include "WebViewClient.h" |
| 38 #include "WebViewImpl.h" | 38 #include "WebViewImpl.h" |
| 39 #include "core/page/Chrome.h" | 39 #include "core/page/Chrome.h" |
| 40 #include <gtest/gtest.h> | 40 #include <gtest/gtest.h> |
| 41 | 41 |
| 42 using namespace WebKit; | 42 using namespace blink; |
| 43 | 43 |
| 44 namespace WebKit { | 44 namespace blink { |
| 45 | 45 |
| 46 void setCurrentInputEventForTest(const WebInputEvent* event) | 46 void setCurrentInputEventForTest(const WebInputEvent* event) |
| 47 { | 47 { |
| 48 WebViewImpl::m_currentInputEvent = event; | 48 WebViewImpl::m_currentInputEvent = event; |
| 49 } | 49 } |
| 50 | 50 |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace { | 53 namespace { |
| 54 | 54 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 TEST_F(GetNavigationPolicyTest, NotResizableForcesPopup) | 263 TEST_F(GetNavigationPolicyTest, NotResizableForcesPopup) |
| 264 { | 264 { |
| 265 m_chromeClientImpl->setResizable(false); | 265 m_chromeClientImpl->setResizable(false); |
| 266 EXPECT_TRUE(isNavigationPolicyPopup()); | 266 EXPECT_TRUE(isNavigationPolicyPopup()); |
| 267 m_chromeClientImpl->setResizable(true); | 267 m_chromeClientImpl->setResizable(true); |
| 268 EXPECT_FALSE(isNavigationPolicyPopup()); | 268 EXPECT_FALSE(isNavigationPolicyPopup()); |
| 269 } | 269 } |
| 270 | 270 |
| 271 } // namespace | 271 } // namespace |
| OLD | NEW |