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

Side by Side Diff: base/files/file_unittest.cc

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « base/files/file_proxy_unittest.cc ('k') | base/files/file_util_proxy_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/files/file.h" 5 #include "base/files/file.h"
6 #include "base/files/file_util.h" 6 #include "base/files/file_util.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/googletest/include/gtest/gtest.h"
10 10
11 using base::File; 11 using base::File;
12 using base::FilePath; 12 using base::FilePath;
13 13
14 TEST(FileTest, Create) { 14 TEST(FileTest, Create) {
15 base::ScopedTempDir temp_dir; 15 base::ScopedTempDir temp_dir;
16 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 16 ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
17 FilePath file_path = temp_dir.path().AppendASCII("create_file_1"); 17 FilePath file_path = temp_dir.path().AppendASCII("create_file_1");
18 18
19 { 19 {
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 NULL)); 502 NULL));
503 ASSERT_TRUE(dir.IsValid()); 503 ASSERT_TRUE(dir.IsValid());
504 504
505 base::File::Info info; 505 base::File::Info info;
506 EXPECT_TRUE(dir.GetInfo(&info)); 506 EXPECT_TRUE(dir.GetInfo(&info));
507 EXPECT_TRUE(info.is_directory); 507 EXPECT_TRUE(info.is_directory);
508 EXPECT_FALSE(info.is_symbolic_link); 508 EXPECT_FALSE(info.is_symbolic_link);
509 EXPECT_EQ(0, info.size); 509 EXPECT_EQ(0, info.size);
510 } 510 }
511 #endif // defined(OS_WIN) 511 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « base/files/file_proxy_unittest.cc ('k') | base/files/file_util_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698