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

Unified Diff: Source/web/tests/FrameTestHelpers.h

Issue 1328773002: Make classes and structures in web fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/FakeWebPlugin.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/FrameTestHelpers.h
diff --git a/Source/web/tests/FrameTestHelpers.h b/Source/web/tests/FrameTestHelpers.h
index 6800cf78faca681a30bbc927e60d5c98ff977b4e..d8fc8cb1a0d75aae3ec5e94147bfaa53b1986137 100644
--- a/Source/web/tests/FrameTestHelpers.h
+++ b/Source/web/tests/FrameTestHelpers.h
@@ -40,6 +40,7 @@
#include "public/web/WebRemoteFrameClient.h"
#include "public/web/WebViewClient.h"
#include "web/WebViewImpl.h"
+#include "wtf/Allocator.h"
#include "wtf/PassOwnPtr.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
@@ -74,6 +75,7 @@ public:
// Convenience class for handling the lifetime of a WebView and its associated mainframe in tests.
class WebViewHelper {
+ DISALLOW_ALLOCATION();
WTF_MAKE_NONCOPYABLE(WebViewHelper);
public:
WebViewHelper(SettingOverrider* = 0);
@@ -101,6 +103,7 @@ private:
// Minimal implementation of WebFrameClient needed for unit tests that load frames. Tests that load
// frames and need further specialization of WebFrameClient behavior should subclass this.
class TestWebFrameClient : public WebFrameClient {
+ WTF_MAKE_FAST_ALLOCATED(TestWebFrameClient);
public:
TestWebFrameClient();
@@ -119,6 +122,7 @@ private:
// Minimal implementation of WebRemoteFrameClient needed for unit tests that load remote frames. Tests that load
// frames and need further specialization of WebFrameClient behavior should subclass this.
class TestWebRemoteFrameClient : public WebRemoteFrameClient {
+ DISALLOW_ALLOCATION();
public:
TestWebRemoteFrameClient();
@@ -137,6 +141,7 @@ private:
};
class TestWebViewClient : public WebViewClient {
+ WTF_MAKE_FAST_ALLOCATED(TestWebViewClient);
public:
virtual ~TestWebViewClient() { }
void initializeLayerTreeView() override;
@@ -147,6 +152,7 @@ private:
};
class UseMockScrollbarSettings {
+ DISALLOW_ALLOCATION();
public:
UseMockScrollbarSettings()
{
« no previous file with comments | « Source/web/tests/FakeWebPlugin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698