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

Side by Side Diff: chrome/browser/search_engines/template_url_service_unittest.cc

Issue 15906011: Use a direct include of strings headers in chrome/browser/r*-s*/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/string_util.h"
11 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
11 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/test/mock_time_provider.h" 13 #include "base/test/mock_time_provider.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "chrome/browser/history/history_notifications.h" 16 #include "chrome/browser/history/history_notifications.h"
17 #include "chrome/browser/history/history_service.h" 17 #include "chrome/browser/history/history_service.h"
18 #include "chrome/browser/history/history_service_factory.h" 18 #include "chrome/browser/history/history_service_factory.h"
19 #include "chrome/browser/search_engines/search_host_to_urls_map.h" 19 #include "chrome/browser/search_engines/search_host_to_urls_map.h"
20 #include "chrome/browser/search_engines/search_terms_data.h" 20 #include "chrome/browser/search_engines/search_terms_data.h"
21 #include "chrome/browser/search_engines/template_url.h" 21 #include "chrome/browser/search_engines/template_url.h"
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 EXPECT_EQ(8U, loaded_url->input_encodings().size()); 1566 EXPECT_EQ(8U, loaded_url->input_encodings().size());
1567 1567
1568 // Reload the model to verify it was actually saved to the database and the 1568 // Reload the model to verify it was actually saved to the database and the
1569 // duplicate encodings were removed. 1569 // duplicate encodings were removed.
1570 test_util_.ResetModel(true); 1570 test_util_.ResetModel(true);
1571 ASSERT_EQ(initial_count + 1, model()->GetTemplateURLs().size()); 1571 ASSERT_EQ(initial_count + 1, model()->GetTemplateURLs().size());
1572 loaded_url = model()->GetTemplateURLForKeyword(ASCIIToUTF16("keyword")); 1572 loaded_url = model()->GetTemplateURLForKeyword(ASCIIToUTF16("keyword"));
1573 ASSERT_FALSE(loaded_url == NULL); 1573 ASSERT_FALSE(loaded_url == NULL);
1574 EXPECT_EQ(4U, loaded_url->input_encodings().size()); 1574 EXPECT_EQ(4U, loaded_url->input_encodings().size());
1575 } 1575 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698