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

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

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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/search_engines/template_url_service.h" 5 #include "components/search_engines/template_url_service.h"
6 6
7 #include <stddef.h>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
9 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
12 #include "base/run_loop.h" 15 #include "base/run_loop.h"
13 #include "base/strings/string_split.h" 16 #include "base/strings/string_split.h"
14 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
15 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
16 #include "base/task/cancelable_task_tracker.h" 19 #include "base/task/cancelable_task_tracker.h"
17 #include "base/test/simple_test_clock.h" 20 #include "base/test/simple_test_clock.h"
18 #include "base/threading/thread.h" 21 #include "base/threading/thread.h"
19 #include "base/time/time.h" 22 #include "base/time/time.h"
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 scoped_ptr<TemplateURL::AssociatedExtensionInfo> extension_info( 1499 scoped_ptr<TemplateURL::AssociatedExtensionInfo> extension_info(
1497 new TemplateURL::AssociatedExtensionInfo( 1500 new TemplateURL::AssociatedExtensionInfo(
1498 TemplateURL::NORMAL_CONTROLLED_BY_EXTENSION, "ext1")); 1501 TemplateURL::NORMAL_CONTROLLED_BY_EXTENSION, "ext1"));
1499 extension_info->wants_to_be_default_engine = true; 1502 extension_info->wants_to_be_default_engine = true;
1500 model()->AddExtensionControlledTURL(ext_dse, extension_info.Pass()); 1503 model()->AddExtensionControlledTURL(ext_dse, extension_info.Pass());
1501 EXPECT_EQ(ext_dse, model()->GetTemplateURLForKeyword(ASCIIToUTF16("ext1"))); 1504 EXPECT_EQ(ext_dse, model()->GetTemplateURLForKeyword(ASCIIToUTF16("ext1")));
1502 EXPECT_TRUE(model()->is_default_search_managed()); 1505 EXPECT_TRUE(model()->is_default_search_managed());
1503 actual_managed_default = model()->GetDefaultSearchProvider(); 1506 actual_managed_default = model()->GetDefaultSearchProvider();
1504 ExpectSimilar(expected_managed_default.get(), actual_managed_default); 1507 ExpectSimilar(expected_managed_default.get(), actual_managed_default);
1505 } 1508 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698