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

Side by Side Diff: webkit/fileapi/file_system_operation_unittest.cc

Issue 10447043: Move all webkit/fileapi tests to content_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 "webkit/fileapi/file_system_operation.h" 5 #include "webkit/fileapi/file_system_operation.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 } 372 }
373 373
374 // For post-operation status. 374 // For post-operation status.
375 int status_; 375 int status_;
376 base::PlatformFileInfo info_; 376 base::PlatformFileInfo info_;
377 FilePath path_; 377 FilePath path_;
378 std::vector<base::FileUtilProxy::Entry> entries_; 378 std::vector<base::FileUtilProxy::Entry> entries_;
379 scoped_refptr<ShareableFileReference> shareable_file_ref_; 379 scoped_refptr<ShareableFileReference> shareable_file_ref_;
380 380
381 private: 381 private:
382 MessageLoop message_loop_;
382 scoped_refptr<QuotaManager> quota_manager_; 383 scoped_refptr<QuotaManager> quota_manager_;
383 scoped_refptr<QuotaManagerProxy> quota_manager_proxy_; 384 scoped_refptr<QuotaManagerProxy> quota_manager_proxy_;
384 385
385 int next_unique_path_suffix_; 386 int next_unique_path_suffix_;
386 387
387 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationTest); 388 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationTest);
388 }; 389 };
389 390
390 void FileSystemOperationTest::SetUp() { 391 void FileSystemOperationTest::SetUp() {
391 FilePath base_dir = base_.path().AppendASCII("filesystem"); 392 FilePath base_dir = base_.path().AppendASCII("filesystem");
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 EXPECT_EQ(base::PLATFORM_FILE_OK, status()); 1142 EXPECT_EQ(base::PLATFORM_FILE_OK, status());
1142 EXPECT_FALSE(info().is_directory); 1143 EXPECT_FALSE(info().is_directory);
1143 EXPECT_EQ(PlatformPath(file_path), path()); 1144 EXPECT_EQ(PlatformPath(file_path), path());
1144 1145
1145 // The FileSystemOpration implementation does not create a 1146 // The FileSystemOpration implementation does not create a
1146 // shareable file reference. 1147 // shareable file reference.
1147 EXPECT_EQ(NULL, shareable_file_ref()); 1148 EXPECT_EQ(NULL, shareable_file_ref());
1148 } 1149 }
1149 1150
1150 } // namespace fileapi 1151 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698