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 20 matching lines...) Expand all Loading... |
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) | 35 #if defined(TOOLKIT_VIEWS) |
36 #include "chrome/browser/ui/views/frame/browser_view.h" | 36 #include "chrome/browser/ui/views/frame/browser_view.h" |
37 #endif | 37 #endif |
38 | 38 |
39 using content::NavigationController; | 39 using content::NavigationController; |
40 using content::WebContents; | 40 using content::WebContents; |
| 41 using extensions::Extension; |
41 | 42 |
42 const std::string kSubscribePage = "/subscribe.html"; | 43 const std::string kSubscribePage = "/subscribe.html"; |
43 const std::string kFeedPage = "files/feeds/feed.html"; | 44 const std::string kFeedPage = "files/feeds/feed.html"; |
44 const std::string kFeedPageMultiRel = "files/feeds/feed_multi_rel.html"; | 45 const std::string kFeedPageMultiRel = "files/feeds/feed_multi_rel.html"; |
45 const std::string kNoFeedPage = "files/feeds/no_feed.html"; | 46 const std::string kNoFeedPage = "files/feeds/no_feed.html"; |
46 const std::string kValidFeed0 = "files/feeds/feed_script.xml"; | 47 const std::string kValidFeed0 = "files/feeds/feed_script.xml"; |
47 const std::string kValidFeed1 = "files/feeds/feed1.xml"; | 48 const std::string kValidFeed1 = "files/feeds/feed1.xml"; |
48 const std::string kValidFeed2 = "files/feeds/feed2.xml"; | 49 const std::string kValidFeed2 = "files/feeds/feed2.xml"; |
49 const std::string kValidFeed3 = "files/feeds/feed3.xml"; | 50 const std::string kValidFeed3 = "files/feeds/feed3.xml"; |
50 const std::string kValidFeed4 = "files/feeds/feed4.xml"; | 51 const std::string kValidFeed4 = "files/feeds/feed4.xml"; |
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 | 927 |
927 EXPECT_EQ(extension->GetResourceURL("options.html"), | 928 EXPECT_EQ(extension->GetResourceURL("options.html"), |
928 tab_strip->GetTabContentsAt(1)->web_contents()->GetURL()); | 929 tab_strip->GetTabContentsAt(1)->web_contents()->GetURL()); |
929 } | 930 } |
930 | 931 |
931 //============================================================================== | 932 //============================================================================== |
932 // STOP! Please do not add any more random-ass tests here. Create new files for | 933 // 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 | 934 // your tests grouped by functionality. Also, you should strongly consider using |
934 // ExtensionAPITest if possible. | 935 // ExtensionAPITest if possible. |
935 //============================================================================== | 936 //============================================================================== |
OLD | NEW |