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

Side by Side Diff: chrome/browser/chromeos/extensions/external_filesystem_apitest.cc

Issue 12225076: Delete most web intents code. (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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h" 5 #include "base/bind.h"
6 #include "base/file_path.h" 6 #include "base/file_path.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/json/json_file_value_serializer.h" 9 #include "base/json/json_file_value_serializer.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 page_complete.WaitUntilClosed(); 259 page_complete.WaitUntilClosed();
260 260
261 ASSERT_TRUE(file_handler) << message_; 261 ASSERT_TRUE(file_handler) << message_;
262 262
263 ASSERT_TRUE(RunFileBrowserHandlerTest("read.html", 263 ASSERT_TRUE(RunFileBrowserHandlerTest("read.html",
264 "filebrowser_component", 264 "filebrowser_component",
265 "")) 265 ""))
266 << message_; 266 << message_;
267 } 267 }
268 268
269 #if defined(ENABLE_WEB_INTENTS)
270 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, FileBrowserWebIntentTest) {
271 // Create a test file inside the ScopedTempDir.
272 FilePath test_file = mount_point_dir_.AppendASCII("text_file.xul");
273 CreateFileWithContent(test_file, kTestFileContent);
274
275 ASSERT_TRUE(RunFileBrowserHandlerTest("intent.html#/tmp/text_file.xul",
276 "filebrowser_component",
277 "webintent_handler"))
278 << message_;
279 }
280 #endif
281
282 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, FileBrowserTestWrite) { 269 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, FileBrowserTestWrite) {
283 ASSERT_TRUE(RunFileBrowserHandlerTest("write.html", 270 ASSERT_TRUE(RunFileBrowserHandlerTest("write.html",
284 "filebrowser_component", 271 "filebrowser_component",
285 "filesystem_handler_write")) 272 "filesystem_handler_write"))
286 << message_; 273 << message_;
287 } 274 }
288 275
289 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, 276 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest,
290 FileBrowserTestWriteReadOnly) { 277 FileBrowserTestWriteReadOnly) {
291 ASSERT_FALSE(RunFileBrowserHandlerTest("write.html#def", 278 ASSERT_FALSE(RunFileBrowserHandlerTest("write.html#def",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 319
333 IN_PROC_BROWSER_TEST_F(RemoteFileSystemExtensionApiTest, ContentSearch) { 320 IN_PROC_BROWSER_TEST_F(RemoteFileSystemExtensionApiTest, ContentSearch) {
334 // Configure the drive service to return only one search result at a time 321 // Configure the drive service to return only one search result at a time
335 // to simulate paginated searches. 322 // to simulate paginated searches.
336 fake_drive_service_->set_default_max_results(1); 323 fake_drive_service_->set_default_max_results(1);
337 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote_search.html", 324 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote_search.html",
338 kComponentFlags)) << message_; 325 kComponentFlags)) << message_;
339 } 326 }
340 327
341 } // namespace 328 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698