| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "storage/browser/fileapi/external_mount_points.h" | 5 #include "storage/browser/fileapi/external_mount_points.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 | 10 |
| 9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
| 10 #include "storage/browser/fileapi/file_system_url.h" | 13 #include "storage/browser/fileapi/file_system_url.h" |
| 11 #include "storage/common/fileapi/file_system_mount_option.h" | 14 #include "storage/common/fileapi/file_system_mount_option.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 16 |
| 14 #define FPL FILE_PATH_LITERAL | 17 #define FPL FILE_PATH_LITERAL |
| 15 | 18 |
| 16 #if defined(FILE_PATH_USES_DRIVE_LETTERS) | 19 #if defined(FILE_PATH_USES_DRIVE_LETTERS) |
| 17 #define DRIVE FPL("C:") | 20 #define DRIVE FPL("C:") |
| 18 #else | 21 #else |
| 19 #define DRIVE | 22 #define DRIVE |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 EXPECT_EQ(storage::FlushPolicy::NO_FLUSH_ON_COMPLETION, | 496 EXPECT_EQ(storage::FlushPolicy::NO_FLUSH_ON_COMPLETION, |
| 494 option.flush_policy()); | 497 option.flush_policy()); |
| 495 EXPECT_TRUE(mount_points->CrackVirtualPath( | 498 EXPECT_TRUE(mount_points->CrackVirtualPath( |
| 496 base::FilePath(FPL("sync/file")), &name, &type, &cracked_id, &path, | 499 base::FilePath(FPL("sync/file")), &name, &type, &cracked_id, &path, |
| 497 &option)); | 500 &option)); |
| 498 EXPECT_EQ(storage::FlushPolicy::FLUSH_ON_COMPLETION, option.flush_policy()); | 501 EXPECT_EQ(storage::FlushPolicy::FLUSH_ON_COMPLETION, option.flush_policy()); |
| 499 } | 502 } |
| 500 | 503 |
| 501 } // namespace content | 504 } // namespace content |
| 502 | 505 |
| OLD | NEW |