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

Unified Diff: chrome/browser/chromeos/drive/file_system_util_unittest.cc

Issue 580023003: Rename the drive: scheme with the externalfile: scheme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/file_system_util_unittest.cc
diff --git a/chrome/browser/chromeos/drive/file_system_util_unittest.cc b/chrome/browser/chromeos/drive/file_system_util_unittest.cc
index 8d06626c2eb9ba75179e2845ef442017f9504185..2fc31a984e53788b983f1e21e221f358ed2d117e 100644
--- a/chrome/browser/chromeos/drive/file_system_util_unittest.cc
+++ b/chrome/browser/chromeos/drive/file_system_util_unittest.cc
@@ -1,9 +1,11 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/drive/file_system_util.h"
+#include <vector>
+
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
@@ -52,31 +54,6 @@ class ProfileRelatedFileSystemUtilTest : public testing::Test {
} // namespace
-TEST(FileSystemUtilTest, FilePathToDriveURL) {
- base::FilePath path;
-
- // Path with alphabets and numbers.
- path = GetDriveMyDriveRootPath().AppendASCII("foo/bar012.txt");
- EXPECT_EQ(path, DriveURLToFilePath(FilePathToDriveURL(path)));
-
- // Path with symbols.
- path = GetDriveMyDriveRootPath().AppendASCII(
- " !\"#$%&'()*+,-.:;<=>?@[\\]^_`{|}~");
- EXPECT_EQ(path, DriveURLToFilePath(FilePathToDriveURL(path)));
-
- // Path with '%'.
- path = GetDriveMyDriveRootPath().AppendASCII("%19%20%21.txt");
- EXPECT_EQ(path, DriveURLToFilePath(FilePathToDriveURL(path)));
-
- // Path with multi byte characters.
- base::string16 utf16_string;
- utf16_string.push_back(0x307b); // HIRAGANA_LETTER_HO
- utf16_string.push_back(0x3052); // HIRAGANA_LETTER_GE
- path = GetDriveMyDriveRootPath().Append(
- base::FilePath::FromUTF8Unsafe(base::UTF16ToUTF8(utf16_string) + ".txt"));
- EXPECT_EQ(path, DriveURLToFilePath(FilePathToDriveURL(path)));
-}
-
TEST_F(ProfileRelatedFileSystemUtilTest, GetDriveMountPointPath) {
Profile* profile = testing_profile_manager().CreateTestingProfile("user1");
const std::string user_id_hash =
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_util.cc ('k') | chrome/browser/chromeos/file_manager/open_with_browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698