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

Side by Side Diff: chrome/browser/importer/profile_writer_unittest.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « chrome/browser/importer/profile_writer.cc ('k') | chrome/browser/infobars/infobar_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/importer/profile_writer.h" 5 #include "chrome/browser/importer/profile_writer.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 10
11 #include "base/macros.h"
9 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 13 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
11 #include "chrome/browser/history/history_service_factory.h" 14 #include "chrome/browser/history/history_service_factory.h"
12 #include "chrome/browser/importer/importer_unittest_utils.h" 15 #include "chrome/browser/importer/importer_unittest_utils.h"
13 #include "chrome/common/importer/imported_bookmark_entry.h" 16 #include "chrome/common/importer/imported_bookmark_entry.h"
14 #include "chrome/test/base/testing_profile.h" 17 #include "chrome/test/base/testing_profile.h"
15 #include "components/bookmarks/browser/bookmark_match.h" 18 #include "components/bookmarks/browser/bookmark_match.h"
16 #include "components/bookmarks/browser/bookmark_model.h" 19 #include "components/bookmarks/browser/bookmark_model.h"
17 #include "components/bookmarks/browser/bookmark_utils.h" 20 #include "components/bookmarks/browser/bookmark_utils.h"
18 #include "components/bookmarks/test/bookmark_test_helpers.h" 21 #include "components/bookmarks/test/bookmark_test_helpers.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 new TestProfileWriter(&profile)); 200 new TestProfileWriter(&profile));
198 profile_writer->AddHistoryPage(pages_, history::SOURCE_FIREFOX_IMPORTED); 201 profile_writer->AddHistoryPage(pages_, history::SOURCE_FIREFOX_IMPORTED);
199 VerifyHistoryCount(&profile); 202 VerifyHistoryCount(&profile);
200 size_t original_history_count = history_count_; 203 size_t original_history_count = history_count_;
201 history_count_ = 0; 204 history_count_ = 0;
202 205
203 profile_writer->AddHistoryPage(pages_, history::SOURCE_FIREFOX_IMPORTED); 206 profile_writer->AddHistoryPage(pages_, history::SOURCE_FIREFOX_IMPORTED);
204 VerifyHistoryCount(&profile); 207 VerifyHistoryCount(&profile);
205 EXPECT_EQ(original_history_count, history_count_); 208 EXPECT_EQ(original_history_count, history_count_);
206 } 209 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/profile_writer.cc ('k') | chrome/browser/infobars/infobar_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698