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

Side by Side Diff: chrome/browser/history/history_unittest_base.h

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_HISTORY_HISTORY_UNITTEST_BASE_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_UNITTEST_BASE_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_UNITTEST_BASE_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_UNITTEST_BASE_H_
7 7
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "chrome/test/testing_browser_process_test.h" 9 #include "chrome/test/base/testing_browser_process_test.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace history { 12 namespace history {
13 // A base class for a history unit test. It provides the common test methods. 13 // A base class for a history unit test. It provides the common test methods.
14 // 14 //
15 class HistoryUnitTestBase : public TestingBrowserProcessTest { 15 class HistoryUnitTestBase : public TestingBrowserProcessTest {
16 public: 16 public:
17 virtual ~HistoryUnitTestBase(); 17 virtual ~HistoryUnitTestBase();
18 18
19 // Executes the sql from the file |sql_path| in the database at |db_path|. 19 // Executes the sql from the file |sql_path| in the database at |db_path|.
20 // |sql_path| is the SQL script file name with full path. 20 // |sql_path| is the SQL script file name with full path.
21 // |db_path| is the db file name with full path. 21 // |db_path| is the db file name with full path.
22 static void ExecuteSQLScript(const FilePath& sql_path, 22 static void ExecuteSQLScript(const FilePath& sql_path,
23 const FilePath& db_path); 23 const FilePath& db_path);
24 24
25 protected: 25 protected:
26 HistoryUnitTestBase(); 26 HistoryUnitTestBase();
27 27
28 private: 28 private:
29 DISALLOW_COPY_AND_ASSIGN(HistoryUnitTestBase); 29 DISALLOW_COPY_AND_ASSIGN(HistoryUnitTestBase);
30 }; 30 };
31 31
32 } // namespace history 32 } // namespace history
33 33
34 #endif // CHROME_BROWSER_HISTORY_HISTORY_UNITTEST_BASE_H_ 34 #endif // CHROME_BROWSER_HISTORY_HISTORY_UNITTEST_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/importer/importer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698