Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: Source/web/tests/WebSearchableFormDataTest.cpp

Issue 1174283002: Fix unit test style in Source/web/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove static Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp ('k') | Source/web/tests/WebSelectorTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebSearchableFormDataTest.cpp
diff --git a/Source/web/tests/WebSearchableFormDataTest.cpp b/Source/web/tests/WebSearchableFormDataTest.cpp
index 1cb06b2c4314aea06ed8a4d24c5c4e98be7ebd1b..dccc4e3a8b9a269fc60d6735aca3c68a54d7496f 100644
--- a/Source/web/tests/WebSearchableFormDataTest.cpp
+++ b/Source/web/tests/WebSearchableFormDataTest.cpp
@@ -29,7 +29,6 @@
*/
#include "config.h"
-
#include "public/web/WebSearchableFormData.h"
#include "platform/testing/URLTestHelpers.h"
@@ -38,11 +37,10 @@
#include "public/web/WebDocument.h"
#include "public/web/WebFrame.h"
#include "web/tests/FrameTestHelpers.h"
-
#include <gmock/gmock.h>
#include <gtest/gtest.h>
-using namespace blink;
+namespace blink {
class WebSearchableFormDataTest : public testing::Test {
protected:
@@ -51,12 +49,11 @@ protected:
{
}
- virtual ~WebSearchableFormDataTest()
+ ~WebSearchableFormDataTest() override
{
Platform::current()->unitTestSupport()->unregisterAllMockedURLs();
}
-
FrameTestHelpers::WebViewHelper m_webViewHelper;
std::string m_baseURL;
};
@@ -75,3 +72,5 @@ TEST_F(WebSearchableFormDataTest, SearchString)
WebSearchableFormData searchableFormData(forms[0]);
EXPECT_EQ("http://www.mock.url/search?hl=en&q={searchTerms}&btnM=Mock+Search", searchableFormData.url().string());
}
+
+} // namespace blink
« no previous file with comments | « Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp ('k') | Source/web/tests/WebSelectorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698