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

Side by Side Diff: chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc

Issue 11106007: drive: Rename 'gdata' namespace to 'drive' in chrome/browser/chromeos/drive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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 "chrome/browser/chromeos/drive/drive_file_system_util.h" 5 #include "chrome/browser/chromeos/drive/drive_file_system_util.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace gdata { 10 namespace drive {
11 namespace util { 11 namespace util {
12 12
13 TEST(DriveFileSystemUtilTest, IsUnderDriveMountPoint) { 13 TEST(DriveFileSystemUtilTest, IsUnderDriveMountPoint) {
14 EXPECT_FALSE(IsUnderDriveMountPoint( 14 EXPECT_FALSE(IsUnderDriveMountPoint(
15 FilePath::FromUTF8Unsafe("/wherever/foo.txt"))); 15 FilePath::FromUTF8Unsafe("/wherever/foo.txt")));
16 EXPECT_FALSE(IsUnderDriveMountPoint( 16 EXPECT_FALSE(IsUnderDriveMountPoint(
17 FilePath::FromUTF8Unsafe("/special/foo.txt"))); 17 FilePath::FromUTF8Unsafe("/special/foo.txt")));
18 EXPECT_FALSE(IsUnderDriveMountPoint( 18 EXPECT_FALSE(IsUnderDriveMountPoint(
19 FilePath::FromUTF8Unsafe("/special/drivex/foo.txt"))); 19 FilePath::FromUTF8Unsafe("/special/drivex/foo.txt")));
20 EXPECT_FALSE(IsUnderDriveMountPoint( 20 EXPECT_FALSE(IsUnderDriveMountPoint(
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 "/home/user/GCache/v1/pinned/pdf:a1b2"), 104 "/home/user/GCache/v1/pinned/pdf:a1b2"),
105 &resource_id, 105 &resource_id,
106 &md5, 106 &md5,
107 &extra_extension); 107 &extra_extension);
108 EXPECT_EQ(resource_id, "pdf:a1b2"); 108 EXPECT_EQ(resource_id, "pdf:a1b2");
109 EXPECT_EQ(md5, ""); 109 EXPECT_EQ(md5, "");
110 EXPECT_EQ(extra_extension, ""); 110 EXPECT_EQ(extra_extension, "");
111 } 111 }
112 112
113 } // namespace util 113 } // namespace util
114 } // namespace gdata 114 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_util.cc ('k') | chrome/browser/chromeos/drive/drive_files.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698