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

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

Issue 10544034: gdata: Fix a crash at shutdown with pending gdata operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix RemoteFileSystemExtensionApiTest.RemoteMountPoint Created 8 years, 6 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/browser/chromeos/system/ash_system_tray_delegate.cc » ('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) 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/json/json_file_value_serializer.h" 8 #include "base/json/json_file_value_serializer.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 EXPECT_CALL(*mock_documents_service_, 292 EXPECT_CALL(*mock_documents_service_,
293 DownloadFile(_, _, GURL("https://file_content_url_changed"), 293 DownloadFile(_, _, GURL("https://file_content_url_changed"),
294 _, _)) 294 _, _))
295 .WillOnce(MockDownloadFileCallback(gdata::HTTP_SUCCESS)); 295 .WillOnce(MockDownloadFileCallback(gdata::HTTP_SUCCESS));
296 296
297 // On exit, all operations in progress should be cancelled. 297 // On exit, all operations in progress should be cancelled.
298 EXPECT_CALL(*mock_documents_service_, CancelAll()); 298 EXPECT_CALL(*mock_documents_service_, CancelAll());
299 // This one is called on exit, but we don't care much about it, as long as it 299 // This one is called on exit, but we don't care much about it, as long as it
300 // retunrs something valid (i.e. not NULL). 300 // retunrs something valid (i.e. not NULL).
301 EXPECT_CALL(*mock_documents_service_, operation_registry()). 301 EXPECT_CALL(*mock_documents_service_, operation_registry()).
302 WillOnce(Return(operation_registry_.get())); 302 WillRepeatedly(Return(operation_registry_.get()));
303 303
304 // All is set... RUN THE TEST. 304 // All is set... RUN THE TEST.
305 EXPECT_TRUE(RunExtensionTest("filesystem_handler")) << message_; 305 EXPECT_TRUE(RunExtensionTest("filesystem_handler")) << message_;
306 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote.html", 306 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote.html",
307 kComponentFlags)) << message_; 307 kComponentFlags)) << message_;
308 } 308 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/ash_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698