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

Side by Side Diff: chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_apitest.cc

Issue 374543002: [fsp] Simplify browser tests by extracting the common code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 5 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 | chrome/test/data/extensions/api_test/file_system_provider/big_file/manifest.json » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "chrome/browser/extensions/extension_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 class FileSystemProviderApiTest : public ExtensionApiTest { 9 class FileSystemProviderApiTest : public ExtensionApiTest {
10 public: 10 public:
11 FileSystemProviderApiTest() 11 FileSystemProviderApiTest()
12 // Set the channel to "trunk" since this API is restricted to trunk. 12 // Set the channel to "trunk" since this API is restricted to trunk.
13 : current_channel_(chrome::VersionInfo::CHANNEL_UNKNOWN) { 13 : current_channel_(chrome::VersionInfo::CHANNEL_UNKNOWN) {
14 } 14 }
15 15
16 // Loads a helper testing extension.
17 virtual void SetUpOnMainThread() OVERRIDE {
18 ExtensionApiTest::SetUpOnMainThread();
19 const extensions::Extension* extension = LoadExtensionWithFlags(
20 test_data_dir_.AppendASCII("file_system_provider/test_util"),
21 kFlagEnableIncognito);
22 ASSERT_TRUE(extension);
23 }
24
16 private: 25 private:
17 extensions::ScopedCurrentChannel current_channel_; 26 extensions::ScopedCurrentChannel current_channel_;
18 }; 27 };
19 28
20 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Mount) { 29 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Mount) {
21 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mount", 30 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mount",
22 kFlagLoadAsComponent)) 31 kFlagLoadAsComponent))
23 << message_; 32 << message_;
24 } 33 }
25 34
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 << message_; 68 << message_;
60 } 69 }
61 70
62 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, MimeType) { 71 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, MimeType) {
63 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mime_type", 72 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mime_type",
64 kFlagLoadAsComponent)) 73 kFlagLoadAsComponent))
65 << message_; 74 << message_;
66 } 75 }
67 76
68 } // namespace extensions 77 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/file_system_provider/big_file/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698