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

Unified Diff: chrome/browser/meta_table_helper_unittest.cc

Issue 1700017: Get rid of MetaTableHelper class and make use of the app/sql API in the LoginDatabase. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: fix rebase that removed the chrome_tests.gypi Created 10 years, 7 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
« no previous file with comments | « chrome/browser/meta_table_helper.cc ('k') | chrome/browser/password_manager/login_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/meta_table_helper_unittest.cc
diff --git a/chrome/browser/meta_table_helper_unittest.cc b/chrome/browser/meta_table_helper_unittest.cc
deleted file mode 100644
index 0d8ae5bc4939d3b21a4ff075d91e336bec853ae7..0000000000000000000000000000000000000000
--- a/chrome/browser/meta_table_helper_unittest.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2009 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.
-
-// Tests for MetaTableHelper.
-
-#include "chrome/browser/meta_table_helper.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-class MetaTableHelperTest : public testing::Test {
- public:
- static void appendMetaTableName(const std::string& db_name,
- std::string* sql) {
- MetaTableHelper::appendMetaTableName(db_name, sql);
- }
-};
-
-TEST_F(MetaTableHelperTest, EmptyDbName) {
- std::string sql("select * from ");
- MetaTableHelperTest::appendMetaTableName(std::string(), &sql);
- EXPECT_EQ("select * from meta", sql);
-}
-
-TEST_F(MetaTableHelperTest, NonEmptyDbName) {
- std::string sql("select * from ");
- MetaTableHelperTest::appendMetaTableName(std::string("mydb"), &sql);
- EXPECT_EQ("select * from mydb.meta", sql);
-}
« no previous file with comments | « chrome/browser/meta_table_helper.cc ('k') | chrome/browser/password_manager/login_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698