Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(946)

Unified Diff: chrome/browser/history/android/android_history_types_unittest.cc

Issue 584013002: Componentize history_types.{cc,h} and android_history_types.{cc,h} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/android/android_history_types_unittest.cc
diff --git a/chrome/browser/history/android/android_history_types_unittest.cc b/chrome/browser/history/android/android_history_types_unittest.cc
deleted file mode 100644
index ef8203009873d861fcb4ce364e13cf768c6510c9..0000000000000000000000000000000000000000
--- a/chrome/browser/history/android/android_history_types_unittest.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// 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/history/android/android_history_types.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace history {
-
-TEST(AndroidHistoryTypesTest, TestGetBookmarkColumnID) {
- EXPECT_EQ(HistoryAndBookmarkRow::ID,
- HistoryAndBookmarkRow::GetColumnID("_id"));
- EXPECT_EQ(HistoryAndBookmarkRow::URL,
- HistoryAndBookmarkRow::GetColumnID("url"));
- EXPECT_EQ(HistoryAndBookmarkRow::TITLE,
- HistoryAndBookmarkRow::GetColumnID("title"));
- EXPECT_EQ(HistoryAndBookmarkRow::CREATED,
- HistoryAndBookmarkRow::GetColumnID("created"));
- EXPECT_EQ(HistoryAndBookmarkRow::LAST_VISIT_TIME,
- HistoryAndBookmarkRow::GetColumnID("date"));
- EXPECT_EQ(HistoryAndBookmarkRow::VISIT_COUNT,
- HistoryAndBookmarkRow::GetColumnID("visits"));
- EXPECT_EQ(HistoryAndBookmarkRow::FAVICON,
- HistoryAndBookmarkRow::GetColumnID("favicon"));
- EXPECT_EQ(HistoryAndBookmarkRow::BOOKMARK,
- HistoryAndBookmarkRow::GetColumnID("bookmark"));
- EXPECT_EQ(HistoryAndBookmarkRow::RAW_URL,
- HistoryAndBookmarkRow::GetColumnID("raw_url"));
-}
-
-TEST(AndroidHistoryTypesTest, TestGetSearchColumnID) {
- EXPECT_EQ(SearchRow::ID, SearchRow::GetColumnID("_id"));
- EXPECT_EQ(SearchRow::SEARCH_TERM, SearchRow::GetColumnID("search"));
- EXPECT_EQ(SearchRow::SEARCH_TIME, SearchRow::GetColumnID("date"));
-}
-
-} // namespace history
« no previous file with comments | « chrome/browser/history/android/android_history_types.cc ('k') | chrome/browser/history/android/android_provider_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698