| 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
| 12 #include "chrome/browser/chromeos/gdata/drive.pb.h" | |
| 13 #include "chrome/browser/chromeos/gdata/drive_cache.h" | 12 #include "chrome/browser/chromeos/gdata/drive_cache.h" |
| 14 #include "chrome/browser/chromeos/gdata/drive_file_system.h" | 13 #include "chrome/browser/chromeos/gdata/drive_file_system.h" |
| 15 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" | 14 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" |
| 16 #include "chrome/browser/chromeos/gdata/drive_test_util.h" | 15 #include "chrome/browser/chromeos/gdata/drive_test_util.h" |
| 17 #include "chrome/browser/chromeos/gdata/mock_drive_cache_observer.h" | 16 #include "chrome/browser/chromeos/gdata/mock_drive_cache_observer.h" |
| 17 #include "chrome/browser/google_apis/drive.pb.h" |
| 18 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
| 19 #include "chrome/test/base/testing_profile.h" | 19 #include "chrome/test/base/testing_profile.h" |
| 20 #include "content/public/test/test_browser_thread.h" | 20 #include "content/public/test/test_browser_thread.h" |
| 21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 | 23 |
| 24 using ::testing::AtLeast; | 24 using ::testing::AtLeast; |
| 25 using ::testing::Return; | 25 using ::testing::Return; |
| 26 using ::testing::StrictMock; | 26 using ::testing::StrictMock; |
| 27 | 27 |
| (...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1564 test_util::TEST_CACHE_STATE_NONE, | 1564 test_util::TEST_CACHE_STATE_NONE, |
| 1565 DriveCache::CACHE_TYPE_TMP); | 1565 DriveCache::CACHE_TYPE_TMP); |
| 1566 EXPECT_EQ(1, num_callback_invocations_); | 1566 EXPECT_EQ(1, num_callback_invocations_); |
| 1567 | 1567 |
| 1568 // Verify that there's no files added. | 1568 // Verify that there's no files added. |
| 1569 EXPECT_EQ(0U, CountCacheFiles(resource_id, md5)); | 1569 EXPECT_EQ(0U, CountCacheFiles(resource_id, md5)); |
| 1570 } | 1570 } |
| 1571 | 1571 |
| 1572 | 1572 |
| 1573 } // namespace gdata | 1573 } // namespace gdata |
| OLD | NEW |