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

Side by Side Diff: chrome/browser/chromeos/gdata/drive_cache_unittest.cc

Issue 10915226: OBSOLETE - Move drive.proto to browser/google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698