diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 18:08:53 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 18:08:53 +0000 |
commit | 7d478a4a4a933e8ceb52d579ca78327af91c899f (patch) | |
tree | 62634be4a22d09b6ffb89422afcf8d01a4986561 /chrome/browser/cocoa/bookmark_bar_controller_unittest.mm | |
parent | ca21ee3baf737591e6ded0bb24a69234d77d3c77 (diff) | |
download | chromium_src-7d478a4a4a933e8ceb52d579ca78327af91c899f.zip chromium_src-7d478a4a4a933e8ceb52d579ca78327af91c899f.tar.gz chromium_src-7d478a4a4a933e8ceb52d579ca78327af91c899f.tar.bz2 |
TBR: nsylvain
Revert
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_bar_controller_unittest.mm')
-rw-r--r-- | chrome/browser/cocoa/bookmark_bar_controller_unittest.mm | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_controller_unittest.mm b/chrome/browser/cocoa/bookmark_bar_controller_unittest.mm index be96e60..985e96f 100644 --- a/chrome/browser/cocoa/bookmark_bar_controller_unittest.mm +++ b/chrome/browser/cocoa/bookmark_bar_controller_unittest.mm @@ -6,7 +6,6 @@ #include "base/basictypes.h" #include "base/scoped_nsobject.h" -#include "base/sys_string_conversions.h" #import "chrome/browser/cocoa/bookmark_bar_constants.h" #import "chrome/browser/cocoa/bookmark_bar_controller.h" #import "chrome/browser/cocoa/bookmark_bar_view.h" @@ -670,38 +669,6 @@ TEST_F(BookmarkBarControllerTest, BookmarkButtonSizing) { } } -TEST_F(BookmarkBarControllerTest, DropBookmarks) { - BookmarkModel* model = helper_.profile()->GetBookmarkModel(); - const BookmarkNode* parent = model->GetBookmarkBarNode(); - - const char* urls[] = { - "http://qwantz.com", - "http://xkcd.com", - "javascript:alert('lolwut')" - }; - std::wstring titles[] = { - std::wstring(L"Philosophoraptor"), - std::wstring(L"Can't draw"), - std::wstring(L"Inspiration") - }; - EXPECT_EQ(arraysize(urls), arraysize(titles)); - - NSMutableArray* nsurls = [NSMutableArray arrayWithCapacity:0]; - NSMutableArray* nstitles = [NSMutableArray arrayWithCapacity:0]; - for (size_t i = 0; i < arraysize(urls); ++i) { - [nsurls addObject:[NSString stringWithCString:urls[i]]]; - [nstitles addObject:base::SysWideToNSString(titles[i])]; - } - - [bar_ addURLs:nsurls withTitles:nstitles at:NSZeroPoint]; - EXPECT_EQ(3, parent->GetChildCount()); - for (int i = 0; i < parent->GetChildCount(); ++i) { - EXPECT_EQ(parent->GetChild(i)->GetURL(), GURL(urls[i])); - EXPECT_EQ(parent->GetChild(i)->GetTitle(), titles[i]); - } -} - - // Cannot test these methods since they simply call a single static // method, BookmarkEditor::Show(), which is impossible to mock. // editBookmark:, addPage: |