| 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 "chrome/browser/extensions/extension_browsertest.h" | 5 #include "chrome/browser/extensions/extension_browsertest.h" |
| 6 #include "chrome/browser/ui/browser.h" | 6 #include "chrome/browser/ui/browser.h" |
| 7 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 7 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 8 #include "chrome/common/extensions/extension.h" | |
| 9 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
| 10 #include "chrome/test/base/ui_test_utils.h" | 9 #include "chrome/test/base/ui_test_utils.h" |
| 11 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| 12 #include "content/public/test/browser_test_utils.h" | 11 #include "content/public/test/browser_test_utils.h" |
| 13 #include "extensions/common/constants.h" | 12 #include "extensions/common/constants.h" |
| 13 #include "extensions/common/extension.h" |
| 14 | 14 |
| 15 using content::WebContents; | 15 using content::WebContents; |
| 16 using extensions::Extension; | 16 using extensions::Extension; |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 const char kSubscribePage[] = "/subscribe.html"; | 20 const char kSubscribePage[] = "/subscribe.html"; |
| 21 const char kFeedPageMultiRel[] = "files/feeds/feed_multi_rel.html"; | 21 const char kFeedPageMultiRel[] = "files/feeds/feed_multi_rel.html"; |
| 22 const char kValidFeedNoLinks[] = "files/feeds/feed_nolinks.xml"; | 22 const char kValidFeedNoLinks[] = "files/feeds/feed_nolinks.xml"; |
| 23 const char kValidFeed0[] = "files/feeds/feed_script.xml"; | 23 const char kValidFeed0[] = "files/feeds/feed_script.xml"; |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 std::string id = extension->id(); | 351 std::string id = extension->id(); |
| 352 | 352 |
| 353 // Valid feed but containing no links. | 353 // Valid feed but containing no links. |
| 354 NavigateToFeedAndValidate( | 354 NavigateToFeedAndValidate( |
| 355 test_server(), kValidFeedNoLinks, browser(), id, true, | 355 test_server(), kValidFeedNoLinks, browser(), id, true, |
| 356 "Feed for MyFeedTitle", | 356 "Feed for MyFeedTitle", |
| 357 "Title with no link", | 357 "Title with no link", |
| 358 "Desc", | 358 "Desc", |
| 359 "No error"); | 359 "No error"); |
| 360 } | 360 } |
| OLD | NEW |