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

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

Issue 8540031: Disable selection on aura. Clipboard semantics on aura must be same as windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 1 month 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 | « chrome/browser/extensions/extension_clipboard_api.cc ('k') | ui/base/clipboard/clipboard.h » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/common/chrome_switches.h" 7 #include "chrome/common/chrome_switches.h"
8 8
9 class ExtensionClipboardApiTest : public ExtensionApiTest { 9 class ExtensionClipboardApiTest : public ExtensionApiTest {
10 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { 10 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
11 CommandLine::ForCurrentProcess()->AppendSwitch( 11 CommandLine::ForCurrentProcess()->AppendSwitch(
12 switches::kEnableExperimentalExtensionApis); 12 switches::kEnableExperimentalExtensionApis);
13 13
14 ExtensionApiTest::SetUpInProcessBrowserTestFixture(); 14 ExtensionApiTest::SetUpInProcessBrowserTestFixture();
15 } 15 }
16 }; 16 };
17 17
18 IN_PROC_BROWSER_TEST_F(ExtensionClipboardApiTest, WriteAndReadTest) { 18 IN_PROC_BROWSER_TEST_F(ExtensionClipboardApiTest, WriteAndReadTest) {
19 #if defined(OS_WIN) 19 #if defined(OS_WIN) || defined(USE_AURA)
20 ASSERT_TRUE(RunExtensionTest("clipboard_api/extension_win")) << message_; 20 ASSERT_TRUE(RunExtensionTest("clipboard_api/extension_win")) << message_;
21 #else // !defined(OS_WIN) 21 #elif defined(OS_MACOSX)
22 #if defined(OS_MACOSX)
23 ASSERT_TRUE(RunExtensionTest("clipboard_api/extension_mac")) << message_; 22 ASSERT_TRUE(RunExtensionTest("clipboard_api/extension_mac")) << message_;
24 #else // !defined(OS_WIN) && !defined(OS_MACOSX) 23 #else // !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(USE_AURA)
25 ASSERT_TRUE(RunExtensionTest("clipboard_api/extension")) << message_; 24 ASSERT_TRUE(RunExtensionTest("clipboard_api/extension")) << message_;
26 #endif // defined(OS_MACOSX) 25 #endif
27 #endif // defiend(OS_WIN)
28 }; 26 };
29 27
30 IN_PROC_BROWSER_TEST_F(ExtensionClipboardApiTest, NoPermission) { 28 IN_PROC_BROWSER_TEST_F(ExtensionClipboardApiTest, NoPermission) {
31 ASSERT_FALSE(RunExtensionTest("clipboard_api/extension_no_permission")) 29 ASSERT_FALSE(RunExtensionTest("clipboard_api/extension_no_permission"))
32 << message_; 30 << message_;
33 }; 31 };
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_clipboard_api.cc ('k') | ui/base/clipboard/clipboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698