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

Side by Side Diff: chrome/browser/extensions/api/media_galleries_private/media_galleries_eject_apitest.cc

Issue 12286020: Replace FilePath with base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 // MediaGalleriesPrivate eject API browser tests. 5 // MediaGalleriesPrivate eject API browser tests.
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/extensions/extension_apitest.h" 10 #include "chrome/browser/extensions/extension_apitest.h"
(...skipping 24 matching lines...) Expand all
35 35
36 // And JS reply messages. 36 // And JS reply messages.
37 const char kAddAttachListenerOk[] = "add_attach_ok"; 37 const char kAddAttachListenerOk[] = "add_attach_ok";
38 const char kAttachTestOk[] = "attach_test_ok"; 38 const char kAttachTestOk[] = "attach_test_ok";
39 const char kRemoveAttachListenerOk[] = "remove_attach_ok"; 39 const char kRemoveAttachListenerOk[] = "remove_attach_ok";
40 const char kEjectListenerOk[] = "eject_ok"; 40 const char kEjectListenerOk[] = "eject_ok";
41 const char kEjectFailListenerOk[] = "eject_no_such_device"; 41 const char kEjectFailListenerOk[] = "eject_no_such_device";
42 42
43 const char kDeviceId[] = "testDeviceId"; 43 const char kDeviceId[] = "testDeviceId";
44 const char kDeviceName[] = "foobar"; 44 const char kDeviceName[] = "foobar";
45 FilePath::CharType kDevicePath[] = FILE_PATH_LITERAL("/qux"); 45 base::FilePath::CharType kDevicePath[] = FILE_PATH_LITERAL("/qux");
46 46
47 } // namespace 47 } // namespace
48 48
49 49
50 /////////////////////////////////////////////////////////////////////////////// 50 ///////////////////////////////////////////////////////////////////////////////
51 // MediaGalleriesPrivateEjectApiTest // 51 // MediaGalleriesPrivateEjectApiTest //
52 /////////////////////////////////////////////////////////////////////////////// 52 ///////////////////////////////////////////////////////////////////////////////
53 53
54 class MediaGalleriesPrivateEjectApiTest : public ExtensionApiTest { 54 class MediaGalleriesPrivateEjectApiTest : public ExtensionApiTest {
55 public: 55 public:
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 129 }
130 130
131 IN_PROC_BROWSER_TEST_F(MediaGalleriesPrivateEjectApiTest, EjectBadDeviceTest) { 131 IN_PROC_BROWSER_TEST_F(MediaGalleriesPrivateEjectApiTest, EjectBadDeviceTest) {
132 scoped_ptr<chrome::test::TestRemovableStorageNotifications> notifications( 132 scoped_ptr<chrome::test::TestRemovableStorageNotifications> notifications(
133 chrome::test::TestRemovableStorageNotifications::CreateForBrowserTests()); 133 chrome::test::TestRemovableStorageNotifications::CreateForBrowserTests());
134 134
135 ExecuteCmdAndCheckReply(GetHost(), kEjectFailTestCmd, kEjectFailListenerOk); 135 ExecuteCmdAndCheckReply(GetHost(), kEjectFailTestCmd, kEjectFailListenerOk);
136 136
137 EXPECT_EQ("", notifications->ejected_device()); 137 EXPECT_EQ("", notifications->ejected_device());
138 } 138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698