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

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

Issue 2111010: fix chrome.tabs.onUpdated bugs, add browsertest (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: more cr changes Created 10 years, 7 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 6
7 #include "chrome/browser/browser.h" 7 #include "chrome/browser/browser.h"
8 #include "chrome/browser/pref_service.h" 8 #include "chrome/browser/pref_service.h"
9 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profile.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
(...skipping 19 matching lines...) Expand all
30 prefs::kHomePageIsNewTabPage, true); 30 prefs::kHomePageIsNewTabPage, true);
31 31
32 ASSERT_TRUE(RunExtensionTest("tabs/basics2")) << message_; 32 ASSERT_TRUE(RunExtensionTest("tabs/basics2")) << message_;
33 } 33 }
34 34
35 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CaptureVisibleTab) { 35 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CaptureVisibleTab) {
36 ASSERT_TRUE(StartHTTPServer()); 36 ASSERT_TRUE(StartHTTPServer());
37 37
38 ASSERT_TRUE(RunExtensionTest("tabs/capture_visible_tab")) << message_; 38 ASSERT_TRUE(RunExtensionTest("tabs/capture_visible_tab")) << message_;
39 } 39 }
40
41 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, TabsOnUpdated) {
42 ASSERT_TRUE(StartHTTPServer());
43
44 ASSERT_TRUE(RunExtensionTest("tabs/on_updated")) << message_;
45 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browser_event_router.cc ('k') | chrome/browser/extensions/extension_tabs_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698