| OLD | NEW | 
|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "app/gtk_dnd_util.h" | 5 #include "app/gtk_dnd_util.h" | 
| 6 #include "chrome/browser/gtk/bookmark_utils_gtk.h" | 6 #include "chrome/browser/gtk/bookmark_utils_gtk.h" | 
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" | 
| 8 | 8 | 
| 9 TEST(BookmarkUtilsGtkTest, GetNodesFromSelectionInvalid) { | 9 TEST(BookmarkUtilsGtkTest, GetNodesFromSelectionInvalid) { | 
| 10   std::vector<const BookmarkNode*> nodes; | 10   std::vector<const BookmarkNode*> nodes; | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
| 29       gtk_dnd_util::CHROME_BOOKMARK_ITEM, NULL, NULL, NULL); | 29       gtk_dnd_util::CHROME_BOOKMARK_ITEM, NULL, NULL, NULL); | 
| 30   EXPECT_EQ(0u, nodes.size()); | 30   EXPECT_EQ(0u, nodes.size()); | 
| 31 | 31 | 
| 32   guchar test_data[] = ""; | 32   guchar test_data[] = ""; | 
| 33   data.data = test_data; | 33   data.data = test_data; | 
| 34   data.length = 0; | 34   data.length = 0; | 
| 35   nodes = bookmark_utils::GetNodesFromSelection(NULL, &data, | 35   nodes = bookmark_utils::GetNodesFromSelection(NULL, &data, | 
| 36       gtk_dnd_util::CHROME_BOOKMARK_ITEM, NULL, NULL, NULL); | 36       gtk_dnd_util::CHROME_BOOKMARK_ITEM, NULL, NULL, NULL); | 
| 37   EXPECT_EQ(0u, nodes.size()); | 37   EXPECT_EQ(0u, nodes.size()); | 
| 38 } | 38 } | 
| OLD | NEW | 
|---|