| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 28 matching lines...) Expand all Loading... |
| 39 #include "public/web/WebRemoteFrameClient.h" | 39 #include "public/web/WebRemoteFrameClient.h" |
| 40 #include "public/web/WebViewClient.h" | 40 #include "public/web/WebViewClient.h" |
| 41 #include "web/WebViewImpl.h" | 41 #include "web/WebViewImpl.h" |
| 42 #include "wtf/PassOwnPtr.h" | 42 #include "wtf/PassOwnPtr.h" |
| 43 #include <gmock/gmock.h> | 43 #include <gmock/gmock.h> |
| 44 #include <gtest/gtest.h> | 44 #include <gtest/gtest.h> |
| 45 #include <string> | 45 #include <string> |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 class WebLocalFrameImpl; | |
| 50 class WebSettings; | |
| 51 | |
| 52 namespace FrameTestHelpers { | 49 namespace FrameTestHelpers { |
| 53 | 50 |
| 54 class TestWebFrameClient; | 51 class TestWebFrameClient; |
| 55 | 52 |
| 56 // Loads a url into the specified WebFrame for testing purposes. Pumps any | 53 // Loads a url into the specified WebFrame for testing purposes. Pumps any |
| 57 // pending resource requests, as well as waiting for the threaded parser to | 54 // pending resource requests, as well as waiting for the threaded parser to |
| 58 // finish, before returning. | 55 // finish, before returning. |
| 59 void loadFrame(WebFrame*, const std::string& url); | 56 void loadFrame(WebFrame*, const std::string& url); |
| 60 // Same as above, but for WebFrame::loadHTMLString(). | 57 // Same as above, but for WebFrame::loadHTMLString(). |
| 61 void loadHTMLString(WebFrame*, const std::string& html, const WebURL& baseURL); | 58 void loadHTMLString(WebFrame*, const std::string& html, const WebURL& baseURL); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 { | 146 { |
| 150 Settings::setMockScrollbarsEnabled(false); | 147 Settings::setMockScrollbarsEnabled(false); |
| 151 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(false); | 148 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(false); |
| 152 } | 149 } |
| 153 }; | 150 }; |
| 154 | 151 |
| 155 } // namespace FrameTestHelpers | 152 } // namespace FrameTestHelpers |
| 156 } // namespace blink | 153 } // namespace blink |
| 157 | 154 |
| 158 #endif // FrameTestHelpers_h | 155 #endif // FrameTestHelpers_h |
| OLD | NEW |