| OLD | NEW |
| 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 "chrome/browser/chromeos/gdata/gdata_test_util.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_test_util.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/threading/sequenced_worker_pool.h" | 8 #include "base/threading/sequenced_worker_pool.h" |
| 9 #include "chrome/browser/chromeos/gdata/gdata.pb.h" | 9 #include "chrome/browser/chromeos/gdata/gdata.pb.h" |
| 10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 } | 56 } |
| 57 | 57 |
| 58 bool CacheStatesEqual(const GDataCacheEntry& a, const GDataCacheEntry& b) { | 58 bool CacheStatesEqual(const GDataCacheEntry& a, const GDataCacheEntry& b) { |
| 59 return (a.is_present() == b.is_present() && | 59 return (a.is_present() == b.is_present() && |
| 60 a.is_pinned() == b.is_pinned() && | 60 a.is_pinned() == b.is_pinned() && |
| 61 a.is_dirty() == b.is_dirty() && | 61 a.is_dirty() == b.is_dirty() && |
| 62 a.is_mounted() == b.is_mounted() && | 62 a.is_mounted() == b.is_mounted() && |
| 63 a.is_persistent() == b.is_persistent()); | 63 a.is_persistent() == b.is_persistent()); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void CopyResultFromFileOperationCallback(GDataFileError* output, |
| 67 GDataFileError error) { |
| 68 DCHECK(output); |
| 69 *output = error; |
| 70 } |
| 71 |
| 66 } // namespace test_util | 72 } // namespace test_util |
| 67 } // namespace gdata | 73 } // namespace gdata |
| OLD | NEW |