OLD | NEW |
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/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "content/public/test/test_browser_thread_bundle.h" | 13 #include "content/public/test/test_browser_thread_bundle.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace drive { | 16 namespace drive { |
17 namespace internal { | 17 namespace internal { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |