diff options
author | jcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-21 17:35:49 +0000 |
---|---|---|
committer | jcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-21 17:35:49 +0000 |
commit | e3df027f02465a54dc1ab5a948c87dde39aa8d35 (patch) | |
tree | ef8c34418955e98cb5e9c7c2c13e32d27bd35194 /chrome/browser/extensions/extension_tab_util_android.cc | |
parent | 2718693bd74afa04d69cbd55ec6796c1642f127b (diff) | |
download | chromium_src-e3df027f02465a54dc1ab5a948c87dde39aa8d35.zip chromium_src-e3df027f02465a54dc1ab5a948c87dde39aa8d35.tar.gz chromium_src-e3df027f02465a54dc1ab5a948c87dde39aa8d35.tar.bz2 |
Stubbing out the ExtensionTabUtil methods on Android.
As an effort to get the unit_tests linking on Android, stubbing out the methods
in ExtensionTabUtil as there does not seem to be an easy way to refactor that
code.
BUG=None
TEST=None
Review URL: https://chromiumcodereview.appspot.com/10592027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143403 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_tab_util_android.cc')
-rw-r--r-- | chrome/browser/extensions/extension_tab_util_android.cc | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_tab_util_android.cc b/chrome/browser/extensions/extension_tab_util_android.cc new file mode 100644 index 0000000..79c461b --- /dev/null +++ b/chrome/browser/extensions/extension_tab_util_android.cc @@ -0,0 +1,93 @@ +// Copyright (c) 2012 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 "chrome/browser/extensions/extension_tab_util.h" + +#include "base/logging.h" +#include "googleurl/src/gurl.h" + +using base::DictionaryValue; +using base::ListValue; +using content::WebContents; + +int ExtensionTabUtil::GetWindowId(const Browser* browser) { + NOTIMPLEMENTED(); + return -1; +} + +int ExtensionTabUtil::GetWindowIdOfTabStripModel( + const TabStripModel* tab_strip_model) { + NOTIMPLEMENTED(); + return -1; +} + +int ExtensionTabUtil::GetTabId(const WebContents* web_contents) { + NOTIMPLEMENTED(); + return -1; +} + +int ExtensionTabUtil::GetWindowIdOfTab(const WebContents* web_contents) { + NOTIMPLEMENTED(); + return -1; +} + +DictionaryValue* ExtensionTabUtil::CreateTabValue(const WebContents* contents) { + NOTIMPLEMENTED(); + return NULL; +} + +ListValue* ExtensionTabUtil::CreateTabList(const Browser* browser) { + NOTIMPLEMENTED(); + return NULL; +} + +DictionaryValue* ExtensionTabUtil::CreateTabValue(const WebContents* contents, + TabStripModel* tab_strip, + int tab_index) { + NOTIMPLEMENTED(); + return NULL; +} + +DictionaryValue* ExtensionTabUtil::CreateTabValueActive( + const WebContents* contents, + bool active) { + NOTIMPLEMENTED(); + return NULL; +} + +bool ExtensionTabUtil::GetTabStripModel(const WebContents* web_contents, + TabStripModel** tab_strip_model, + int* tab_index) { + NOTIMPLEMENTED(); + return false; +} + +bool ExtensionTabUtil::GetDefaultTab(Browser* browser, + TabContents** contents, + int* tab_id) { + NOTIMPLEMENTED(); + return false; +} + +bool ExtensionTabUtil::GetTabById(int tab_id, + Profile* profile, + bool include_incognito, + Browser** browser, + TabStripModel** tab_strip, + TabContents** contents, + int* tab_index) { + NOTIMPLEMENTED(); + return false; +} + +GURL ExtensionTabUtil::ResolvePossiblyRelativeURL(const std::string& url_string, + const extensions::Extension* extension) { + NOTIMPLEMENTED(); + return GURL(); +} + +bool ExtensionTabUtil::IsCrashURL(const GURL& url) { + NOTIMPLEMENTED(); + return false; +} |