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 16 matching lines...) Expand all Loading... |
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 using content::NavigationController; | 35 using content::NavigationController; |
36 using content::WebContents; | 36 using content::WebContents; |
| 37 using extensions::Extension; |
37 | 38 |
38 const std::string kSubscribePage = "/subscribe.html"; | 39 const std::string kSubscribePage = "/subscribe.html"; |
39 const std::string kFeedPage = "files/feeds/feed.html"; | 40 const std::string kFeedPage = "files/feeds/feed.html"; |
40 const std::string kFeedPageMultiRel = "files/feeds/feed_multi_rel.html"; | 41 const std::string kFeedPageMultiRel = "files/feeds/feed_multi_rel.html"; |
41 const std::string kNoFeedPage = "files/feeds/no_feed.html"; | 42 const std::string kNoFeedPage = "files/feeds/no_feed.html"; |
42 const std::string kValidFeed0 = "files/feeds/feed_script.xml"; | 43 const std::string kValidFeed0 = "files/feeds/feed_script.xml"; |
43 const std::string kValidFeed1 = "files/feeds/feed1.xml"; | 44 const std::string kValidFeed1 = "files/feeds/feed1.xml"; |
44 const std::string kValidFeed2 = "files/feeds/feed2.xml"; | 45 const std::string kValidFeed2 = "files/feeds/feed2.xml"; |
45 const std::string kValidFeed3 = "files/feeds/feed3.xml"; | 46 const std::string kValidFeed3 = "files/feeds/feed3.xml"; |
46 const std::string kValidFeed4 = "files/feeds/feed4.xml"; | 47 const std::string kValidFeed4 = "files/feeds/feed4.xml"; |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 | 878 |
878 EXPECT_EQ(extension->GetResourceURL("options.html"), | 879 EXPECT_EQ(extension->GetResourceURL("options.html"), |
879 tab_strip->GetTabContentsAt(1)->web_contents()->GetURL()); | 880 tab_strip->GetTabContentsAt(1)->web_contents()->GetURL()); |
880 } | 881 } |
881 | 882 |
882 //============================================================================== | 883 //============================================================================== |
883 // STOP! Please do not add any more random-ass tests here. Create new files for | 884 // STOP! Please do not add any more random-ass tests here. Create new files for |
884 // your tests grouped by functionality. Also, you should strongly consider using | 885 // your tests grouped by functionality. Also, you should strongly consider using |
885 // ExtensionAPITest if possible. | 886 // ExtensionAPITest if possible. |
886 //============================================================================== | 887 //============================================================================== |
OLD | NEW |