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

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

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 <stddef.h>
6
5 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/macros.h"
6 #include "base/path_service.h" 9 #include "base/path_service.h"
7 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
8 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/search_engines/template_url_service_factory.h" 13 #include "chrome/browser/search_engines/template_url_service_factory.h"
11 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" 15 #include "chrome/browser/ui/tabs/tab_strip_model.h"
13 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
14 #include "chrome/test/base/in_process_browser_test.h" 17 #include "chrome/test/base/in_process_browser_test.h"
15 #include "chrome/test/base/ui_test_utils.h" 18 #include "chrome/test/base/ui_test_utils.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 101
99 content::WebContents* web_contents = 102 content::WebContents* web_contents =
100 browser()->tab_strip_model()->GetActiveWebContents(); 103 browser()->tab_strip_model()->GetActiveWebContents();
101 content::TestNavigationObserver observer(web_contents); 104 content::TestNavigationObserver observer(web_contents);
102 EXPECT_TRUE(content::ExecuteScript(web_contents, "submit_form()")); 105 EXPECT_TRUE(content::ExecuteScript(web_contents, "submit_form()"));
103 observer.Wait(); 106 observer.Wait();
104 107
105 all_urls = template_urls->GetTemplateURLs(); 108 all_urls = template_urls->GetTemplateURLs();
106 EXPECT_EQ(prepopulate_urls.size() + 1, all_urls.size()); 109 EXPECT_EQ(prepopulate_urls.size() + 1, all_urls.size());
107 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698