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

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

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/file_write_watcher.h" 5 #include "chrome/browser/chromeos/drive/file_write_watcher.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // interface is running on UI thread) and FILE thread (Linux version of 56 // interface is running on UI thread) and FILE thread (Linux version of
57 // base::FilePathWatcher needs to live on an IOAllowed thread with TYPE_IO, 57 // base::FilePathWatcher needs to live on an IOAllowed thread with TYPE_IO,
58 // which is FILE thread in the production environment). 58 // which is FILE thread in the production environment).
59 // 59 //
60 // By using the IO_MAINLOOP test thread bundle, the main thread is used 60 // By using the IO_MAINLOOP test thread bundle, the main thread is used
61 // both as UI and FILE thread, with TYPE_IO message loop. 61 // both as UI and FILE thread, with TYPE_IO message loop.
62 FileWriteWatcherTest() 62 FileWriteWatcherTest()
63 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) { 63 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {
64 } 64 }
65 65
66 virtual void SetUp() OVERRIDE { 66 virtual void SetUp() override {
67 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 67 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
68 } 68 }
69 69
70 base::FilePath GetTempPath(const std::string& name) { 70 base::FilePath GetTempPath(const std::string& name) {
71 return temp_dir_.path().Append(name); 71 return temp_dir_.path().Append(name);
72 } 72 }
73 73
74 private: 74 private:
75 content::TestBrowserThreadBundle thread_bundle_; 75 content::TestBrowserThreadBundle thread_bundle_;
76 base::ScopedTempDir temp_dir_; 76 base::ScopedTempDir temp_dir_;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // Unwatched write. It shouldn't be notified. 112 // Unwatched write. It shouldn't be notified.
113 WriteSomethingAfterStartWatch(path4, true); 113 WriteSomethingAfterStartWatch(path4, true);
114 114
115 // The loop should quit if all the three paths are notified to be written. 115 // The loop should quit if all the three paths are notified to be written.
116 loop.Run(); 116 loop.Run();
117 } 117 }
118 118
119 } // namespace internal 119 } // namespace internal
120 } // namespace drive 120 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_task_executor_unittest.cc ('k') | chrome/browser/chromeos/drive/fileapi/async_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698