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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_util_unittest.cc

Issue 10543037: gdata: Convert public synchronous functions in GDataFileSystem to asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698