OLD | NEW |
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 // | |
5 // NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit) | |
6 // rather than as part of test_shell_tests because they rely on being able | |
7 // to instantiate a MessageLoop of type TYPE_IO. test_shell_tests uses | |
8 // TYPE_UI, which URLRequest doesn't allow. | |
9 // | |
10 | 4 |
11 #include "webkit/fileapi/file_system_url_request_job.h" | 5 #include "webkit/fileapi/file_system_url_request_job.h" |
12 | 6 |
13 #include <string> | 7 #include <string> |
14 | 8 |
15 #include "base/bind.h" | 9 #include "base/bind.h" |
16 #include "base/file_path.h" | 10 #include "base/file_path.h" |
17 #include "base/file_util.h" | 11 #include "base/file_util.h" |
18 #include "base/format_macros.h" | 12 #include "base/format_macros.h" |
19 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 | 363 |
370 TestRequest(CreateFileSystemURL(kFilename)); | 364 TestRequest(CreateFileSystemURL(kFilename)); |
371 | 365 |
372 std::string mime_type_from_job; | 366 std::string mime_type_from_job; |
373 request_->GetMimeType(&mime_type_from_job); | 367 request_->GetMimeType(&mime_type_from_job); |
374 EXPECT_EQ(mime_type_direct, mime_type_from_job); | 368 EXPECT_EQ(mime_type_direct, mime_type_from_job); |
375 } | 369 } |
376 | 370 |
377 } // namespace | 371 } // namespace |
378 } // namespace fileapi | 372 } // namespace fileapi |
OLD | NEW |