From 7497c1e3754bc85a0fa2b2a453b536872933e180 Mon Sep 17 00:00:00 2001 From: "jrg@chromium.org" Date: Wed, 28 Jan 2009 01:30:17 +0000 Subject: Unit test addition, cleanup for render_process/thread. Review URL: http://codereview.chromium.org/19606 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8782 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/mock_webkit_glue.cc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 webkit/glue/mock_webkit_glue.cc (limited to 'webkit') diff --git a/webkit/glue/mock_webkit_glue.cc b/webkit/glue/mock_webkit_glue.cc new file mode 100644 index 0000000..a894e08 --- /dev/null +++ b/webkit/glue/mock_webkit_glue.cc @@ -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 + + + + -- cgit v1.1