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

Unified Diff: webkit/glue/mock_webkit_glue.cc

Issue 19606: Unit test addition, cleanup for render_process/thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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: webkit/glue/mock_webkit_glue.cc
===================================================================
--- webkit/glue/mock_webkit_glue.cc (revision 0)
+++ webkit/glue/mock_webkit_glue.cc (revision 0)
@@ -0,0 +1,29 @@
+// Copyright (c) 2009 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.
+
+// Stubs for the webkit_glue namespace so chromium unit tests
+// (e.g. files in src/chrome/renderer/) don't have to bring in all of
+// webkit. For OSX/Linux bootstrapping.
+
+#if !defined(UNIT_TEST)
+#error "This file should only be compiled in a unit test bundle."
+#endif
+
+#if defined(OS_WIN)
+#error "You don't need this file on Windows."
+#endif
+
+#include "webkit/glue/webkit_glue.h"
+
+namespace webkit_glue {
+
+void SetJavaScriptFlags(const std::wstring& str) { }
+void SetRecordPlaybackMode(bool value) { }
+void CheckForLeaks() { }
+
+} // namespace webkit_glue
+
+
+
+
« chrome/renderer/render_process_unittest.cc ('K') | « chrome/test/unit/unittests.vcproj ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698