diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-19 20:56:03 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-19 20:56:03 +0000 |
commit | c057241028c07254ec0852fb60331c4f5c09358b (patch) | |
tree | 8a1000f6e8a76099cbf4c1fee9db4527ca7b8b21 /content/test/test_content_client.cc | |
parent | a0ce3284a4fb3aee664c8ad998fb6c4d4b8d0080 (diff) | |
download | chromium_src-c057241028c07254ec0852fb60331c4f5c09358b.zip chromium_src-c057241028c07254ec0852fb60331c4f5c09358b.tar.gz chromium_src-c057241028c07254ec0852fb60331c4f5c09358b.tar.bz2 |
Start moving files to new content_unittests target.
BUG=90443
Review URL: http://codereview.chromium.org/7677003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97507 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/test_content_client.cc')
-rw-r--r-- | content/test/test_content_client.cc | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/content/test/test_content_client.cc b/content/test/test_content_client.cc new file mode 100644 index 0000000..5112532 --- /dev/null +++ b/content/test/test_content_client.cc @@ -0,0 +1,51 @@ +// Copyright (c) 2011 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. + +#include "content/test/test_content_client.h" + +#include "base/logging.h" +#include "base/string_piece.h" + +TestContentClient::TestContentClient() { +} + +TestContentClient::~TestContentClient() { +} + +void TestContentClient::SetActiveURL(const GURL& url) { +} + +void TestContentClient::SetGpuInfo(const GPUInfo& gpu_info) { +} + +void TestContentClient::AddPepperPlugins( + std::vector<PepperPluginInfo>* plugins) { +} + +bool TestContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { + return true; +} + +bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { + return true; +} + +std::string TestContentClient::GetUserAgent(bool mimic_windows) const { + return std::string(); +} + +string16 TestContentClient::GetLocalizedString(int message_id) const { + return string16(); +} + +base::StringPiece TestContentClient::GetDataResource(int resource_id) const { + return base::StringPiece(); +} + +#if defined(OS_WIN) +bool TestContentClient::SandboxPlugin(CommandLine* command_line, + sandbox::TargetPolicy* policy) { + return false; +} +#endif |