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

Unified Diff: content/test/render_test_utils.h

Issue 10449094: Fix client-side phishing detection test flakiness and ChromeOS failure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Generalize the fix and apply it to webrtc_audio_device_test Created 8 years, 7 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
Index: content/test/render_test_utils.h
diff --git a/content/test/render_test_utils.h b/content/test/render_test_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..d51f52b3e73457d7cc74117bd5336d6d92f1c1e6
--- /dev/null
+++ b/content/test/render_test_utils.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// This file contains implementations of WebKitPlatformSupport and
+// RenderThreadImpl which can be used for tests, where sandbox support is
+// not available.
+
+#ifndef CONTENT_TEST_RENDER_TEST_UTILS_H_
+#define CONTENT_TEST_RENDER_TEST_UTILS_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "content/renderer/render_thread_impl.h"
+#include "content/renderer/renderer_webkitplatformsupport_impl.h"
jam 2012/06/01 22:11:24 we don't allow headers in content/test to "leak th
+
+namespace content {
+
+class RendererWebKitPlatformSupportImplNoSandbox :
+ public RendererWebKitPlatformSupportImpl {
+ public:
+ virtual WebKit::WebSandboxSupport* sandboxSupport() OVERRIDE;
+};
jochen (gone - plz use gerrit) 2012/06/01 12:11:38 DISALLOW_COPY_AND_ASSING, here and below?
+
+class RenderThreadImplNoSandbox : public RenderThreadImpl {
+ public:
+ explicit RenderThreadImplNoSandbox(const std::string& channel_name);
+ virtual ~RenderThreadImplNoSandbox();
+
+ protected:
+ virtual RendererWebKitPlatformSupportImpl*
+ CreateWebKitPlatformSupport() OVERRIDE;
+};
+
+} // namespace content
+
+#endif // CONTENT_TEST_RENDER_TEST_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698