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

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

Issue 10414007: Disable ExtensionApiTest.Processes on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/command_line.h" 5 #include "base/command_line.h"
6 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/browser/extensions/extension_test_message_listener.h" 7 #include "chrome/browser/extensions/extension_test_message_listener.h"
8 #include "chrome/browser/task_manager/task_manager.h" 8 #include "chrome/browser/task_manager/task_manager.h"
9 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" 9 #include "chrome/browser/task_manager/task_manager_browsertest_util.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_window.h" 11 #include "chrome/browser/ui/browser_window.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 13
14 // Sometimes times out on Mac OS 14 // Sometimes times out on Mac OS and Windows
15 // crbug.com/ 15 // crbug.com/97499
16 #ifdef OS_MACOSX 16 #if defined(OS_MACOSX) || defined(OS_WIN)
17 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_Processes) { 17 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_Processes) {
18 #else 18 #else
19 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Processes) { 19 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Processes) {
20 #endif 20 #endif
21 CommandLine::ForCurrentProcess()->AppendSwitch( 21 CommandLine::ForCurrentProcess()->AppendSwitch(
22 switches::kEnableExperimentalExtensionApis); 22 switches::kEnableExperimentalExtensionApis);
23 23
24 ASSERT_TRUE(RunExtensionTest("processes/api")) << message_; 24 ASSERT_TRUE(RunExtensionTest("processes/api")) << message_;
25 } 25 }
26 26
(...skipping 19 matching lines...) Expand all
46 // Now show the task manager and wait for it to be ready 46 // Now show the task manager and wait for it to be ready
47 TaskManagerBrowserTestUtil::ShowTaskManagerAndWaitForReady(browser()); 47 TaskManagerBrowserTestUtil::ShowTaskManagerAndWaitForReady(browser());
48 48
49 EXPECT_EQ(2, model->update_requests_); 49 EXPECT_EQ(2, model->update_requests_);
50 EXPECT_EQ(TaskManagerModel::TASK_PENDING, model->update_state_); 50 EXPECT_EQ(TaskManagerModel::TASK_PENDING, model->update_state_);
51 51
52 // Unload the extension and check that listener count decreases 52 // Unload the extension and check that listener count decreases
53 UnloadExtension(last_loaded_extension_id_); 53 UnloadExtension(last_loaded_extension_id_);
54 EXPECT_EQ(1, model->update_requests_); 54 EXPECT_EQ(1, model->update_requests_);
55 } 55 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698