Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(689)

Side by Side Diff: chrome/browser/extensions/page_action_browsertest.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/strings/utf_string_conversions.h" 5 #include "base/strings/utf_string_conversions.h"
6 #include "chrome/browser/extensions/extension_action.h" 6 #include "chrome/browser/extensions/extension_action.h"
7 #include "chrome/browser/extensions/extension_action_manager.h" 7 #include "chrome/browser/extensions/extension_action_manager.h"
8 #include "chrome/browser/extensions/extension_browsertest.h" 8 #include "chrome/browser/extensions/extension_browsertest.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_system.h"
11 #include "chrome/browser/extensions/extension_tab_util.h" 10 #include "chrome/browser/extensions/extension_tab_util.h"
12 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" 12 #include "chrome/browser/ui/tabs/tab_strip_model.h"
14 #include "chrome/test/base/ui_test_utils.h" 13 #include "chrome/test/base/ui_test_utils.h"
14 #include "extensions/browser/extension_system.h"
15 #include "extensions/common/extension.h" 15 #include "extensions/common/extension.h"
16 #include "extensions/common/switches.h" 16 #include "extensions/common/switches.h"
17 17
18 namespace extensions { 18 namespace extensions {
19 namespace { 19 namespace {
20 20
21 const std::string kFeedPage = "files/feeds/feed.html"; 21 const std::string kFeedPage = "files/feeds/feed.html";
22 const std::string kNoFeedPage = "files/feeds/no_feed.html"; 22 const std::string kNoFeedPage = "files/feeds/no_feed.html";
23 const std::string kLocalization = 23 const std::string kLocalization =
24 "files/extensions/browsertest/title_localized_pa/simple.html"; 24 "files/extensions/browsertest/title_localized_pa/simple.html";
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 int tab_id = ExtensionTabUtil::GetTabId( 197 int tab_id = ExtensionTabUtil::GetTabId(
198 browser()->tab_strip_model()->GetActiveWebContents()); 198 browser()->tab_strip_model()->GetActiveWebContents());
199 EXPECT_STREQ(base::WideToUTF8(L"Hreggvi\u00F0ur").c_str(), 199 EXPECT_STREQ(base::WideToUTF8(L"Hreggvi\u00F0ur").c_str(),
200 ExtensionActionManager::Get(browser()->profile())-> 200 ExtensionActionManager::Get(browser()->profile())->
201 GetPageAction(*extension)-> 201 GetPageAction(*extension)->
202 GetTitle(tab_id).c_str()); 202 GetTitle(tab_id).c_str());
203 } 203 }
204 204
205 } // namespace 205 } // namespace
206 } // namespace extensions 206 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/options_page_apitest.cc ('k') | chrome/browser/extensions/page_action_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698