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 | 4 |
5 #include "base/bind.h" | |
6 #include "base/file_path.h" | |
5 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 7 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
satorux1
2012/06/07 22:47:17
Please put this on the top.
I guess you don't hav
hshi1
2012/06/08 00:22:05
Done.
| |
6 | |
7 #include "base/file_path.h" | |
8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace gdata { | 11 namespace gdata { |
12 namespace util { | 12 namespace util { |
13 | 13 |
14 TEST(GDataUtilTest, IsUnderGDataMountPoint) { | 14 TEST(GDataUtilTest, IsUnderGDataMountPoint) { |
15 EXPECT_FALSE(IsUnderGDataMountPoint( | 15 EXPECT_FALSE(IsUnderGDataMountPoint( |
16 FilePath::FromUTF8Unsafe("/wherever/foo.txt"))); | 16 FilePath::FromUTF8Unsafe("/wherever/foo.txt"))); |
17 EXPECT_FALSE(IsUnderGDataMountPoint( | 17 EXPECT_FALSE(IsUnderGDataMountPoint( |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
88 &resource_id, | 88 &resource_id, |
89 &md5, | 89 &md5, |
90 &extra_extension); | 90 &extra_extension); |
91 EXPECT_EQ(resource_id, "pdf:a1b2"); | 91 EXPECT_EQ(resource_id, "pdf:a1b2"); |
92 EXPECT_EQ(md5, ""); | 92 EXPECT_EQ(md5, ""); |
93 EXPECT_EQ(extra_extension, ""); | 93 EXPECT_EQ(extra_extension, ""); |
94 } | 94 } |
95 | 95 |
96 } // namespace util | 96 } // namespace util |
97 } // namespace gdata | 97 } // namespace gdata |
OLD | NEW |