summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_utils_gtk_unittest.cc
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2011-05-31 20:30:28 +0100
committerKristian Monsen <kristianm@google.com>2011-06-14 20:31:41 -0700
commit72a454cd3513ac24fbdd0e0cb9ad70b86a99b801 (patch)
tree382278a54ce7a744d62fa510a9a80688cc12434b /chrome/browser/gtk/bookmark_utils_gtk_unittest.cc
parentc4becdd46e31d261b930e4b5a539cbc1d45c23a6 (diff)
downloadexternal_chromium-72a454cd3513ac24fbdd0e0cb9ad70b86a99b801.zip
external_chromium-72a454cd3513ac24fbdd0e0cb9ad70b86a99b801.tar.gz
external_chromium-72a454cd3513ac24fbdd0e0cb9ad70b86a99b801.tar.bz2
Merge Chromium.org at r11.0.672.0: Initial merge by git.
Change-Id: I8b4aaf611a2a405fe3fe10e8a94ea7658645c192
Diffstat (limited to 'chrome/browser/gtk/bookmark_utils_gtk_unittest.cc')
-rw-r--r--chrome/browser/gtk/bookmark_utils_gtk_unittest.cc38
1 files changed, 0 insertions, 38 deletions
diff --git a/chrome/browser/gtk/bookmark_utils_gtk_unittest.cc b/chrome/browser/gtk/bookmark_utils_gtk_unittest.cc
deleted file mode 100644
index be22a10..0000000
--- a/chrome/browser/gtk/bookmark_utils_gtk_unittest.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2010 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 "app/gtk_dnd_util.h"
-#include "chrome/browser/gtk/bookmark_utils_gtk.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-TEST(BookmarkUtilsGtkTest, GetNodesFromSelectionInvalid) {
- std::vector<const BookmarkNode*> nodes;
- nodes = bookmark_utils::GetNodesFromSelection(NULL, NULL, 0, NULL, NULL,
- NULL);
- EXPECT_EQ(0u, nodes.size());
-
- GtkSelectionData data;
- data.data = NULL;
- data.length = 0;
- nodes = bookmark_utils::GetNodesFromSelection(NULL, &data, 0, NULL, NULL,
- NULL);
- EXPECT_EQ(0u, nodes.size());
-
- nodes = bookmark_utils::GetNodesFromSelection(NULL, NULL,
- gtk_dnd_util::CHROME_BOOKMARK_ITEM, NULL, NULL, NULL);
- EXPECT_EQ(0u, nodes.size());
-
- data.data = NULL;
- data.length = 0;
- nodes = bookmark_utils::GetNodesFromSelection(NULL, &data,
- gtk_dnd_util::CHROME_BOOKMARK_ITEM, NULL, NULL, NULL);
- EXPECT_EQ(0u, nodes.size());
-
- guchar test_data[] = "";
- data.data = test_data;
- data.length = 0;
- nodes = bookmark_utils::GetNodesFromSelection(NULL, &data,
- gtk_dnd_util::CHROME_BOOKMARK_ITEM, NULL, NULL, NULL);
- EXPECT_EQ(0u, nodes.size());
-}