OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |