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

Side by Side Diff: chrome/common/extensions/api/file_browser_handlers/file_browser_handler_manifest_unittest.cc

Issue 797183005: Add a mimeHandler extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@streams-lifetime
Patch Set: rebase Created 5 years, 11 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 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 "base/strings/string_number_conversions.h" 5 #include "base/strings/string_number_conversions.h"
6 #include "chrome/common/extensions/api/file_browser_handlers/file_browser_handle r.h" 6 #include "chrome/common/extensions/api/file_browser_handlers/file_browser_handle r.h"
7 #include "chrome/common/extensions/extension_constants.h"
8 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" 7 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
8 #include "extensions/common/constants.h"
9 #include "extensions/common/error_utils.h" 9 #include "extensions/common/error_utils.h"
10 #include "extensions/common/extension_builder.h" 10 #include "extensions/common/extension_builder.h"
11 #include "extensions/common/manifest_constants.h" 11 #include "extensions/common/manifest_constants.h"
12 #include "extensions/common/value_builder.h" 12 #include "extensions/common/value_builder.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace errors = extensions::manifest_errors; 15 namespace errors = extensions::manifest_errors;
16 16
17 using extensions::DictionaryBuilder; 17 using extensions::DictionaryBuilder;
18 using extensions::Extension; 18 using extensions::Extension;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 const FileBrowserHandler* action = handlers->at(0).get(); 144 const FileBrowserHandler* action = handlers->at(0).get();
145 const extensions::URLPatternSet& patterns = action->file_url_patterns(); 145 const extensions::URLPatternSet& patterns = action->file_url_patterns();
146 146
147 EXPECT_EQ(0U, patterns.patterns().size()); 147 EXPECT_EQ(0U, patterns.patterns().size());
148 EXPECT_TRUE(action->HasCreateAccessPermission()); 148 EXPECT_TRUE(action->HasCreateAccessPermission());
149 EXPECT_FALSE(action->CanRead()); 149 EXPECT_FALSE(action->CanRead());
150 EXPECT_FALSE(action->CanWrite()); 150 EXPECT_FALSE(action->CanWrite());
151 } 151 }
152 152
153 } // namespace 153 } // namespace
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/_manifest_features.json ('k') | chrome/common/extensions/chrome_manifest_handlers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698