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 "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/extensions/autoupdate_interceptor.h" | 8 #include "chrome/browser/extensions/autoupdate_interceptor.h" |
9 #include "chrome/browser/extensions/extension_apitest.h" | 9 #include "chrome/browser/extensions/extension_apitest.h" |
10 #include "chrome/browser/extensions/extension_browsertest.h" | 10 #include "chrome/browser/extensions/extension_browsertest.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/test/base/ui_test_utils.h" | 25 #include "chrome/test/base/ui_test_utils.h" |
26 #include "content/public/browser/navigation_entry.h" | 26 #include "content/public/browser/navigation_entry.h" |
27 #include "content/public/browser/notification_service.h" | 27 #include "content/public/browser/notification_service.h" |
28 #include "content/public/browser/render_view_host.h" | 28 #include "content/public/browser/render_view_host.h" |
29 #include "content/public/browser/render_view_host_delegate.h" | 29 #include "content/public/browser/render_view_host_delegate.h" |
30 #include "content/public/browser/web_contents.h" | 30 #include "content/public/browser/web_contents.h" |
31 #include "net/base/net_util.h" | 31 #include "net/base/net_util.h" |
32 #include "net/test/test_server.h" | 32 #include "net/test/test_server.h" |
33 #include "webkit/glue/webpreferences.h" | 33 #include "webkit/glue/webpreferences.h" |
34 | 34 |
35 #if defined(TOOLKIT_VIEWS) | |
36 #include "chrome/browser/ui/views/frame/browser_view.h" | |
37 #endif | |
38 | |
39 using content::NavigationController; | 35 using content::NavigationController; |
40 using content::WebContents; | 36 using content::WebContents; |
41 | 37 |
42 const std::string kSubscribePage = "/subscribe.html"; | 38 const std::string kSubscribePage = "/subscribe.html"; |
43 const std::string kFeedPage = "files/feeds/feed.html"; | 39 const std::string kFeedPage = "files/feeds/feed.html"; |
44 const std::string kFeedPageMultiRel = "files/feeds/feed_multi_rel.html"; | 40 const std::string kFeedPageMultiRel = "files/feeds/feed_multi_rel.html"; |
45 const std::string kNoFeedPage = "files/feeds/no_feed.html"; | 41 const std::string kNoFeedPage = "files/feeds/no_feed.html"; |
46 const std::string kValidFeed0 = "files/feeds/feed_script.xml"; | 42 const std::string kValidFeed0 = "files/feeds/feed_script.xml"; |
47 const std::string kValidFeed1 = "files/feeds/feed1.xml"; | 43 const std::string kValidFeed1 = "files/feeds/feed1.xml"; |
48 const std::string kValidFeed2 = "files/feeds/feed2.xml"; | 44 const std::string kValidFeed2 = "files/feeds/feed2.xml"; |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 | 922 |
927 EXPECT_EQ(extension->GetResourceURL("options.html"), | 923 EXPECT_EQ(extension->GetResourceURL("options.html"), |
928 tab_strip->GetTabContentsAt(1)->web_contents()->GetURL()); | 924 tab_strip->GetTabContentsAt(1)->web_contents()->GetURL()); |
929 } | 925 } |
930 | 926 |
931 //============================================================================== | 927 //============================================================================== |
932 // STOP! Please do not add any more random-ass tests here. Create new files for | 928 // STOP! Please do not add any more random-ass tests here. Create new files for |
933 // your tests grouped by functionality. Also, you should strongly consider using | 929 // your tests grouped by functionality. Also, you should strongly consider using |
934 // ExtensionAPITest if possible. | 930 // ExtensionAPITest if possible. |
935 //============================================================================== | 931 //============================================================================== |
OLD | NEW |