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

Side by Side Diff: chrome/test/ui/sandbox_uitests.cc

Issue 3069014: Convert a bunch of easy AppendSwitchWithValue to *ASCII. (Closed)
Patch Set: fix Created 10 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <string> 5 #include <string>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/test/ui/ui_test.h" 9 #include "chrome/test/ui/ui_test.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 class SandboxTest : public UITest { 12 class SandboxTest : public UITest {
13 protected: 13 protected:
14 // Launches chrome with the --test-sandbox=security_tests.dll flag. 14 // Launches chrome with the --test-sandbox=security_tests.dll flag.
15 SandboxTest() : UITest() { 15 SandboxTest() : UITest() {
16 launch_arguments_.AppendSwitchWithValue(switches::kTestSandbox, 16 launch_arguments_.AppendSwitchASCII(switches::kTestSandbox,
17 "security_tests.dll"); 17 "security_tests.dll");
18 } 18 }
19 }; 19 };
20 20
21 #if !defined(OS_WIN) 21 #if !defined(OS_WIN)
22 // Need a cross-platform test library: http://crbug.com/45771 22 // Need a cross-platform test library: http://crbug.com/45771
23 #define ExecuteDll DISABLED_ExecuteDll 23 #define ExecuteDll DISABLED_ExecuteDll
24 #endif 24 #endif
25 // Verifies that chrome is running properly. 25 // Verifies that chrome is running properly.
26 TEST_F(SandboxTest, ExecuteDll) { 26 TEST_F(SandboxTest, ExecuteDll) {
27 EXPECT_EQ(1, GetTabCount()); 27 EXPECT_EQ(1, GetTabCount());
28 } 28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698