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

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

Issue 1970833002: Fix include path for moved thread_task_runner_handle.h header in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 Created 4 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
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> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 12 matching lines...) Expand all
23 #include "base/memory/ptr_util.h" 23 #include "base/memory/ptr_util.h"
24 #include "base/memory/ref_counted.h" 24 #include "base/memory/ref_counted.h"
25 #include "base/metrics/histogram_base.h" 25 #include "base/metrics/histogram_base.h"
26 #include "base/metrics/histogram_samples.h" 26 #include "base/metrics/histogram_samples.h"
27 #include "base/metrics/statistics_recorder.h" 27 #include "base/metrics/statistics_recorder.h"
28 #include "base/run_loop.h" 28 #include "base/run_loop.h"
29 #include "base/strings/string16.h" 29 #include "base/strings/string16.h"
30 #include "base/strings/string_number_conversions.h" 30 #include "base/strings/string_number_conversions.h"
31 #include "base/strings/utf_string_conversions.h" 31 #include "base/strings/utf_string_conversions.h"
32 #include "base/test/histogram_tester.h" 32 #include "base/test/histogram_tester.h"
33 #include "base/thread_task_runner_handle.h" 33 #include "base/threading/thread_task_runner_handle.h"
34 #include "build/build_config.h" 34 #include "build/build_config.h"
35 #include "components/favicon_base/favicon_usage_data.h" 35 #include "components/favicon_base/favicon_usage_data.h"
36 #include "components/history/core/browser/history_backend_client.h" 36 #include "components/history/core/browser/history_backend_client.h"
37 #include "components/history/core/browser/history_constants.h" 37 #include "components/history/core/browser/history_constants.h"
38 #include "components/history/core/browser/history_database_params.h" 38 #include "components/history/core/browser/history_database_params.h"
39 #include "components/history/core/browser/history_service.h" 39 #include "components/history/core/browser/history_service.h"
40 #include "components/history/core/browser/history_service_observer.h" 40 #include "components/history/core/browser/history_service_observer.h"
41 #include "components/history/core/browser/in_memory_database.h" 41 #include "components/history/core/browser/in_memory_database.h"
42 #include "components/history/core/browser/in_memory_history_backend.h" 42 #include "components/history/core/browser/in_memory_history_backend.h"
43 #include "components/history/core/browser/keyword_search_term.h" 43 #include "components/history/core/browser/keyword_search_term.h"
(...skipping 3706 matching lines...) Expand 10 before | Expand all | Expand 10 after
3750 // Verify that the second term is no longer returned as result, and also check 3750 // Verify that the second term is no longer returned as result, and also check
3751 // at the low level that it is gone for good. The term corresponding to the 3751 // at the low level that it is gone for good. The term corresponding to the
3752 // first URLRow should not be affected. 3752 // first URLRow should not be affected.
3753 EXPECT_EQ(1u, GetNumberOfMatchingSearchTerms(kTestKeywordId, term1)); 3753 EXPECT_EQ(1u, GetNumberOfMatchingSearchTerms(kTestKeywordId, term1));
3754 EXPECT_EQ(0u, GetNumberOfMatchingSearchTerms(kTestKeywordId, term2)); 3754 EXPECT_EQ(0u, GetNumberOfMatchingSearchTerms(kTestKeywordId, term2));
3755 EXPECT_TRUE(mem_backend_->db()->GetKeywordSearchTermRow(row1.id(), NULL)); 3755 EXPECT_TRUE(mem_backend_->db()->GetKeywordSearchTermRow(row1.id(), NULL));
3756 EXPECT_FALSE(mem_backend_->db()->GetKeywordSearchTermRow(row2.id(), NULL)); 3756 EXPECT_FALSE(mem_backend_->db()->GetKeywordSearchTermRow(row2.id(), NULL));
3757 } 3757 }
3758 3758
3759 } // namespace history 3759 } // namespace history
OLDNEW
« no previous file with comments | « components/google/core/browser/google_url_tracker_unittest.cc ('k') | components/history/core/browser/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698