summaryrefslogtreecommitdiffstats
path: root/chrome/common/temp_scaffolding_stubs.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 18:54:50 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 18:54:50 +0000
commit4ab4b0f66a346a4e48601d51693170d9adc85d96 (patch)
treeb74eb578456bf14a343b658586ec9898471872a4 /chrome/common/temp_scaffolding_stubs.cc
parent43f55738f0922bc479ee00b5d3d3c264e080f512 (diff)
downloadchromium_src-4ab4b0f66a346a4e48601d51693170d9adc85d96.zip
chromium_src-4ab4b0f66a346a4e48601d51693170d9adc85d96.tar.gz
chromium_src-4ab4b0f66a346a4e48601d51693170d9adc85d96.tar.bz2
Porting unit tests in chrome/
- Make following unit tests compile and pass on Linux: browser/ command_updater_unittest.cc metrics/metrics_log_unittest.cc search_engines/template_url_parser_unittest.cc search_engines/template_url_prepopulate_data_unittest.cc - Add renderer/renderer_main_unittest.cc to list of compiled files (currently stubbed out on Linux) - Remove DebuggerWrapper stubs and make more files from browser/debugger build on Linux. - Sync XCode project file. - Misc cleanups needed for GCC. Review URL: http://codereview.chromium.org/21181 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9490 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.cc')
-rw-r--r--chrome/common/temp_scaffolding_stubs.cc42
1 files changed, 39 insertions, 3 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc
index bdee164..1a10419 100644
--- a/chrome/common/temp_scaffolding_stubs.cc
+++ b/chrome/common/temp_scaffolding_stubs.cc
@@ -12,9 +12,11 @@
#include "base/singleton.h"
#include "base/task.h"
#include "build/build_config.h"
+#include "chrome/browser/autocomplete/autocomplete.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/cache_manager_host.h"
+#include "chrome/browser/debugger/debugger_shell.h"
#include "chrome/browser/first_run.h"
#include "chrome/browser/history/in_memory_history_backend.h"
#include "chrome/browser/profile_manager.h"
@@ -40,6 +42,26 @@ size_t SessionRestore::num_tabs_to_load_ = 0;
//--------------------------------------------------------------------------
+// static
+size_t AutocompleteProvider::max_matches_;
+
+// static
+size_t AutocompleteResult::max_matches_;
+
+//static
+std::string AutocompleteInput::TypeToString(AutocompleteInput::Type type) {
+ NOTIMPLEMENTED();
+ return "";
+}
+
+//static
+std::string AutocompleteMatch::TypeToString(AutocompleteMatch::Type type) {
+ NOTIMPLEMENTED();
+ return "";
+}
+
+//--------------------------------------------------------------------------
+
UserDataManager* UserDataManager::instance_ = NULL;
UserDataManager* UserDataManager::Create() {
@@ -169,7 +191,7 @@ TabContents* TabContents::CreateWithType(TabContentsType type,
Profile* profile,
SiteInstance* instance) {
TabContents* contents;
-
+
switch (type) {
case TAB_CONTENTS_WEB:
contents = new WebContents(profile, instance, NULL, MSG_ROUTING_NONE,
@@ -179,10 +201,10 @@ TabContents* TabContents::CreateWithType(TabContentsType type,
NOTREACHED() << "Don't know how to create tab contents of type " << type;
contents = NULL;
}
-
+
if (contents)
contents->CreateView();
-
+
return contents;
}
@@ -366,3 +388,17 @@ bool ClipboardIsFormatAvailable(Clipboard::FormatType format) {
} // webkit_glue
+#ifndef CHROME_DEBUGGER_DISABLED
+DebuggerShell::DebuggerShell(DebuggerInputOutput *io) { }
+DebuggerShell::~DebuggerShell() { }
+void DebuggerShell::Start() { NOTIMPLEMENTED(); }
+void DebuggerShell::Debug(TabContents* tab) { NOTIMPLEMENTED(); }
+void DebuggerShell::DebugMessage(const std::wstring& msg) { NOTIMPLEMENTED(); }
+void DebuggerShell::OnDebugAttach() { NOTIMPLEMENTED(); }
+void DebuggerShell::OnDebugDisconnect() { NOTIMPLEMENTED(); }
+void DebuggerShell::DidConnect() { NOTIMPLEMENTED(); }
+void DebuggerShell::DidDisconnect() { NOTIMPLEMENTED(); }
+void DebuggerShell::ProcessCommand(const std::wstring& data) {
+ NOTIMPLEMENTED();
+}
+#endif // !CHROME_DEBUGGER_DISABLED