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

Side by Side Diff: chrome/browser/importer/importer_unittest_utils.h

Issue 14575004: Extract BookmarksFileImporter from Firefox2Importer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test cleanup Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_IMPORTER_IMPORTER_UNITTEST_UTILS_H_ 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_UNITTEST_UTILS_H_
6 #define CHROME_BROWSER_IMPORTER_IMPORTER_UNITTEST_UTILS_H_ 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_UNITTEST_UTILS_H_
7 7
8 #include "chrome/browser/importer/profile_writer.h" 8 #include "base/basictypes.h"
9
10 struct ImportedBookmarkEntry;
9 11
10 const int kMaxPathSize = 5; 12 const int kMaxPathSize = 5;
11 13
12 struct BookmarkInfo { 14 struct BookmarkInfo {
13 const bool in_toolbar; 15 const bool in_toolbar;
14 const size_t path_size; 16 const size_t path_size;
15 const wchar_t* path[kMaxPathSize]; 17 const wchar_t* path[kMaxPathSize];
16 const wchar_t* title; 18 const wchar_t* title;
17 const char* url; 19 const char* url;
18 }; 20 };
19 21
20 // Generates an assertion error if |entry| is not equal to |expected|. Wrap this 22 // Generates an assertion error if |entry| is not equal to |expected|. Wrap this
21 // method in (ASSERT|EXPECT)_NO_FATAL_FAILURE to catch the error if one is 23 // method in (ASSERT|EXPECT)_NO_FATAL_FAILURE to catch the error if one is
22 // generated. 24 // generated.
23 void TestEqualBookmarkEntry(const ProfileWriter::BookmarkEntry& entry, 25 void TestEqualBookmarkEntry(const ImportedBookmarkEntry& entry,
24 const BookmarkInfo& expected); 26 const BookmarkInfo& expected);
25 27
26 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_UNITTEST_UTILS_H_ 28 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_UNITTEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698