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

Side by Side Diff: chrome_elf/create_file/chrome_create_file_unittest.cc

Issue 644783004: Replace OVERRIDE with its C++11 counterparts in src/chrome_elf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_elf/create_file/chrome_create_file.h" 5 #include "chrome_elf/create_file/chrome_create_file.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <bitset> 9 #include <bitset>
10 #include <string> 10 #include <string>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 allocation_size, 69 allocation_size,
70 file_attributes, 70 file_attributes,
71 share_access, 71 share_access,
72 create_disposition, 72 create_disposition,
73 create_options, 73 create_options,
74 ea_buffer, 74 ea_buffer,
75 ea_length, 75 ea_length,
76 path); 76 path);
77 } 77 }
78 78
79 virtual void SetUp() OVERRIDE { 79 virtual void SetUp() override {
80 original_thread_ = base::PlatformThread::CurrentId(); 80 original_thread_ = base::PlatformThread::CurrentId();
81 InitCache(); 81 InitCache();
82 PlatformTest::SetUp(); 82 PlatformTest::SetUp();
83 83
84 base::FilePath user_data_dir; 84 base::FilePath user_data_dir;
85 PathService::Get(base::DIR_LOCAL_APP_DATA, &user_data_dir); 85 PathService::Get(base::DIR_LOCAL_APP_DATA, &user_data_dir);
86 ASSERT_TRUE(temp_dir_.CreateUniqueTempDirUnderPath(user_data_dir)); 86 ASSERT_TRUE(temp_dir_.CreateUniqueTempDirUnderPath(user_data_dir));
87 ASSERT_TRUE(temp_dir2_.CreateUniqueTempDir()); 87 ASSERT_TRUE(temp_dir2_.CreateUniqueTempDir());
88 self_ = this; 88 self_ = this;
89 } 89 }
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 DoReadCheck(file_name, FILE_ATTRIBUTE_NORMAL, false); 400 DoReadCheck(file_name, FILE_ATTRIBUTE_NORMAL, false);
401 } 401 }
402 402
403 TEST_F(ChromeCreateFileTest, ReadWriteFromThunk) { 403 TEST_F(ChromeCreateFileTest, ReadWriteFromThunk) {
404 base::FilePath file_name = temp_dir_.path().Append(L"some_file.txt"); 404 base::FilePath file_name = temp_dir_.path().Append(L"some_file.txt");
405 DoWriteCheck(file_name, FILE_ATTRIBUTE_NORMAL, false); 405 DoWriteCheck(file_name, FILE_ATTRIBUTE_NORMAL, false);
406 DoReadCheck(file_name, FILE_ATTRIBUTE_NORMAL, false); 406 DoReadCheck(file_name, FILE_ATTRIBUTE_NORMAL, false);
407 } 407 }
408 408
409 } // namespace 409 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698