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

Side by Side Diff: chrome/browser/extensions/api/history/history_apitest.cc

Issue 20593003: Move kEnableExperimentalExtensionApis switch to extensions/common/switches.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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/base_switches.h" 5 #include "base/base_switches.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/extensions/extension_apitest.h" 9 #include "chrome/browser/extensions/extension_apitest.h"
10 #include "chrome/browser/history/history_service.h" 10 #include "chrome/browser/history/history_service.h"
11 #include "chrome/browser/history/history_service_factory.h" 11 #include "chrome/browser/history/history_service_factory.h"
12 #include "chrome/browser/history/history_types.h" 12 #include "chrome/browser/history/history_types.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/common/chrome_switches.h"
16 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "extensions/common/switches.h"
17 #include "net/dns/mock_host_resolver.h" 17 #include "net/dns/mock_host_resolver.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 namespace extensions { 20 namespace extensions {
21 21
22 class HistoryApiTest : public ExtensionApiTest { 22 class HistoryApiTest : public ExtensionApiTest {
23 public: 23 public:
24 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { 24 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
25 ExtensionApiTest::SetUpInProcessBrowserTestFixture(); 25 ExtensionApiTest::SetUpInProcessBrowserTestFixture();
26 26
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 hs->AddPage(picasa_url, picasa_time, NULL, 0, GURL(), history::RedirectList(), 110 hs->AddPage(picasa_url, picasa_time, NULL, 0, GURL(), history::RedirectList(),
111 content::PAGE_TRANSITION_TYPED, history::SOURCE_EXTENSION, false); 111 content::PAGE_TRANSITION_TYPED, history::SOURCE_EXTENSION, false);
112 hs->SetPageTitle(picasa_url, UTF8ToUTF16("Picasa")); 112 hs->SetPageTitle(picasa_url, UTF8ToUTF16("Picasa"));
113 113
114 // Run the test. 114 // Run the test.
115 ASSERT_TRUE(RunExtensionSubtest("history", "most_visited.html")) 115 ASSERT_TRUE(RunExtensionSubtest("history", "most_visited.html"))
116 << message_; 116 << message_;
117 } 117 }
118 118
119 } // namespace extensions 119 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/dns/dns_apitest.cc ('k') | chrome/browser/extensions/api/idltest/idltest_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698