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

Side by Side Diff: components/history/core/browser/history_backend_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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
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 #include "components/history/core/browser/history_backend.h" 5 #include "components/history/core/browser/history_backend.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <set> 10 #include <set>
9 #include <string> 11 #include <string>
10 #include <utility> 12 #include <utility>
11 #include <vector> 13 #include <vector>
12 14
13 #include "base/basictypes.h"
14 #include "base/bind.h" 15 #include "base/bind.h"
15 #include "base/callback.h" 16 #include "base/callback.h"
16 #include "base/command_line.h" 17 #include "base/command_line.h"
17 #include "base/files/file_path.h" 18 #include "base/files/file_path.h"
18 #include "base/files/file_util.h" 19 #include "base/files/file_util.h"
19 #include "base/files/scoped_temp_dir.h" 20 #include "base/files/scoped_temp_dir.h"
21 #include "base/macros.h"
20 #include "base/memory/ref_counted.h" 22 #include "base/memory/ref_counted.h"
21 #include "base/memory/scoped_ptr.h" 23 #include "base/memory/scoped_ptr.h"
22 #include "base/metrics/histogram_base.h" 24 #include "base/metrics/histogram_base.h"
23 #include "base/metrics/histogram_samples.h" 25 #include "base/metrics/histogram_samples.h"
24 #include "base/metrics/statistics_recorder.h" 26 #include "base/metrics/statistics_recorder.h"
25 #include "base/prefs/pref_service.h" 27 #include "base/prefs/pref_service.h"
26 #include "base/run_loop.h" 28 #include "base/run_loop.h"
27 #include "base/strings/string16.h" 29 #include "base/strings/string16.h"
28 #include "base/strings/string_number_conversions.h" 30 #include "base/strings/string_number_conversions.h"
29 #include "base/strings/utf_string_conversions.h" 31 #include "base/strings/utf_string_conversions.h"
30 #include "base/test/histogram_tester.h" 32 #include "base/test/histogram_tester.h"
31 #include "base/thread_task_runner_handle.h" 33 #include "base/thread_task_runner_handle.h"
34 #include "build/build_config.h"
32 #include "components/favicon_base/favicon_usage_data.h" 35 #include "components/favicon_base/favicon_usage_data.h"
33 #include "components/history/core/browser/history_backend_client.h" 36 #include "components/history/core/browser/history_backend_client.h"
34 #include "components/history/core/browser/history_constants.h" 37 #include "components/history/core/browser/history_constants.h"
35 #include "components/history/core/browser/history_database_params.h" 38 #include "components/history/core/browser/history_database_params.h"
36 #include "components/history/core/browser/history_service.h" 39 #include "components/history/core/browser/history_service.h"
37 #include "components/history/core/browser/history_service_observer.h" 40 #include "components/history/core/browser/history_service_observer.h"
38 #include "components/history/core/browser/in_memory_database.h" 41 #include "components/history/core/browser/in_memory_database.h"
39 #include "components/history/core/browser/in_memory_history_backend.h" 42 #include "components/history/core/browser/in_memory_history_backend.h"
40 #include "components/history/core/browser/keyword_search_term.h" 43 #include "components/history/core/browser/keyword_search_term.h"
41 #include "components/history/core/browser/visit_delegate.h" 44 #include "components/history/core/browser/visit_delegate.h"
(...skipping 3845 matching lines...) Expand 10 before | Expand all | Expand 10 after
3887 // Verify that the second term is no longer returned as result, and also check 3890 // Verify that the second term is no longer returned as result, and also check
3888 // at the low level that it is gone for good. The term corresponding to the 3891 // at the low level that it is gone for good. The term corresponding to the
3889 // first URLRow should not be affected. 3892 // first URLRow should not be affected.
3890 EXPECT_EQ(1u, GetNumberOfMatchingSearchTerms(kTestKeywordId, term1)); 3893 EXPECT_EQ(1u, GetNumberOfMatchingSearchTerms(kTestKeywordId, term1));
3891 EXPECT_EQ(0u, GetNumberOfMatchingSearchTerms(kTestKeywordId, term2)); 3894 EXPECT_EQ(0u, GetNumberOfMatchingSearchTerms(kTestKeywordId, term2));
3892 EXPECT_TRUE(mem_backend_->db()->GetKeywordSearchTermRow(row1.id(), NULL)); 3895 EXPECT_TRUE(mem_backend_->db()->GetKeywordSearchTermRow(row1.id(), NULL));
3893 EXPECT_FALSE(mem_backend_->db()->GetKeywordSearchTermRow(row2.id(), NULL)); 3896 EXPECT_FALSE(mem_backend_->db()->GetKeywordSearchTermRow(row2.id(), NULL));
3894 } 3897 }
3895 3898
3896 } // namespace history 3899 } // namespace history
OLDNEW
« no previous file with comments | « components/history/core/browser/history_backend_db_unittest.cc ('k') | components/history/core/browser/history_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698