diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 01:30:17 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 01:30:17 +0000 |
commit | 7497c1e3754bc85a0fa2b2a453b536872933e180 (patch) | |
tree | a33783cf132cf6ba46c93329f00842152b7e7892 /webkit/glue | |
parent | d8bc79bfb604f3c10c3cd0bc0e35e0b8ec7b8d7d (diff) | |
download | chromium_src-7497c1e3754bc85a0fa2b2a453b536872933e180.zip chromium_src-7497c1e3754bc85a0fa2b2a453b536872933e180.tar.gz chromium_src-7497c1e3754bc85a0fa2b2a453b536872933e180.tar.bz2 |
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
Diffstat (limited to 'webkit/glue')
-rw-r--r-- | webkit/glue/mock_webkit_glue.cc | 29 |
1 files changed, 29 insertions, 0 deletions
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 + + + + |