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

Side by Side Diff: components/search_engines/template_url_service_unittest.cc

Issue 1307643003: IWYU for base/memory/scoped_vector.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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/search_engines/template_url_service.h" 5 #include "components/search_engines/template_url_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/scoped_vector.h"
13 #include "base/run_loop.h" 12 #include "base/run_loop.h"
14 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
15 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
16 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
17 #include "base/task/cancelable_task_tracker.h" 16 #include "base/task/cancelable_task_tracker.h"
18 #include "base/test/simple_test_clock.h" 17 #include "base/test/simple_test_clock.h"
19 #include "base/threading/thread.h" 18 #include "base/threading/thread.h"
20 #include "base/time/time.h" 19 #include "base/time/time.h"
21 #include "chrome/browser/history/history_service_factory.h" 20 #include "chrome/browser/history/history_service_factory.h"
22 #include "chrome/browser/search_engines/template_url_service_test_util.h" 21 #include "chrome/browser/search_engines/template_url_service_test_util.h"
(...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 scoped_ptr<TemplateURL::AssociatedExtensionInfo> extension_info( 1496 scoped_ptr<TemplateURL::AssociatedExtensionInfo> extension_info(
1498 new TemplateURL::AssociatedExtensionInfo( 1497 new TemplateURL::AssociatedExtensionInfo(
1499 TemplateURL::NORMAL_CONTROLLED_BY_EXTENSION, "ext1")); 1498 TemplateURL::NORMAL_CONTROLLED_BY_EXTENSION, "ext1"));
1500 extension_info->wants_to_be_default_engine = true; 1499 extension_info->wants_to_be_default_engine = true;
1501 model()->AddExtensionControlledTURL(ext_dse, extension_info.Pass()); 1500 model()->AddExtensionControlledTURL(ext_dse, extension_info.Pass());
1502 EXPECT_EQ(ext_dse, model()->GetTemplateURLForKeyword(ASCIIToUTF16("ext1"))); 1501 EXPECT_EQ(ext_dse, model()->GetTemplateURLForKeyword(ASCIIToUTF16("ext1")));
1503 EXPECT_TRUE(model()->is_default_search_managed()); 1502 EXPECT_TRUE(model()->is_default_search_managed());
1504 actual_managed_default = model()->GetDefaultSearchProvider(); 1503 actual_managed_default = model()->GetDefaultSearchProvider();
1505 ExpectSimilar(expected_managed_default.get(), actual_managed_default); 1504 ExpectSimilar(expected_managed_default.get(), actual_managed_default);
1506 } 1505 }
OLDNEW
« no previous file with comments | « components/scheduler/child/task_queue_selector_unittest.cc ('k') | components/search_engines/util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698