OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #include "chrome/browser/profile.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 #include "chrome/browser/search_engines/template_url_model.h" | 6 #include "chrome/browser/search_engines/template_url_model.h" |
7 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" | 7 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/common/notification_registrar.h" | 9 #include "chrome/common/notification_registrar.h" |
10 #include "chrome/common/notification_source.h" | 10 #include "chrome/common/notification_source.h" |
11 #include "chrome/common/notification_type.h" | 11 #include "chrome/common/notification_type.h" |
12 #include "chrome/test/in_process_browser_test.h" | 12 #include "chrome/test/in_process_browser_test.h" |
13 #include "chrome/test/ui_test_utils.h" | 13 #include "chrome/test/ui_test_utils.h" |
14 #include "net/base/mock_host_resolver.h" | 14 #include "net/base/mock_host_resolver.h" |
15 #include "net/base/net_util.h" | 15 #include "net/base/net_util.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 HTTPTestServer::CreateServerWithFileRootURL( | 76 HTTPTestServer::CreateServerWithFileRootURL( |
77 L"chrome/test/data/template_url_scraper/submit_handler", L"/", | 77 L"chrome/test/data/template_url_scraper/submit_handler", L"/", |
78 g_browser_process->io_thread()->message_loop())); | 78 g_browser_process->io_thread()->message_loop())); |
79 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete( | 79 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete( |
80 browser(), GURL("http://www.foo.com:1337/"), 2); | 80 browser(), GURL("http://www.foo.com:1337/"), 2); |
81 | 81 |
82 all_urls = template_urls->GetTemplateURLs(); | 82 all_urls = template_urls->GetTemplateURLs(); |
83 EXPECT_EQ(1, all_urls.size() - prepopulate_urls.size()); | 83 EXPECT_EQ(1, all_urls.size() - prepopulate_urls.size()); |
84 } | 84 } |
85 */ | 85 */ |
OLD | NEW |