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

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

Issue 18355004: google_apis: Move data files out of chrome/test/data/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix extension tests Created 7 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/change_list_processor_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/change_list_loader.h" 5 #include "chrome/browser/chromeos/drive/change_list_loader.h"
6 6
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "chrome/browser/chromeos/drive/change_list_loader_observer.h" 10 #include "chrome/browser/chromeos/drive/change_list_loader_observer.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 }; 66 };
67 67
68 class ChangeListLoaderTest : public testing::Test { 68 class ChangeListLoaderTest : public testing::Test {
69 protected: 69 protected:
70 virtual void SetUp() OVERRIDE { 70 virtual void SetUp() OVERRIDE {
71 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 71 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
72 profile_.reset(new TestingProfile); 72 profile_.reset(new TestingProfile);
73 73
74 drive_service_.reset(new FakeDriveService); 74 drive_service_.reset(new FakeDriveService);
75 ASSERT_TRUE(drive_service_->LoadResourceListForWapi( 75 ASSERT_TRUE(drive_service_->LoadResourceListForWapi(
76 "chromeos/gdata/root_feed.json")); 76 "gdata/root_feed.json"));
77 ASSERT_TRUE(drive_service_->LoadAccountMetadataForWapi( 77 ASSERT_TRUE(drive_service_->LoadAccountMetadataForWapi(
78 "chromeos/gdata/account_metadata.json")); 78 "gdata/account_metadata.json"));
79 79
80 scheduler_.reset(new JobScheduler(profile_.get(), drive_service_.get(), 80 scheduler_.reset(new JobScheduler(profile_.get(), drive_service_.get(),
81 base::MessageLoopProxy::current())); 81 base::MessageLoopProxy::current()));
82 metadata_storage_.reset(new ResourceMetadataStorage( 82 metadata_storage_.reset(new ResourceMetadataStorage(
83 temp_dir_.path(), base::MessageLoopProxy::current())); 83 temp_dir_.path(), base::MessageLoopProxy::current()));
84 ASSERT_TRUE(metadata_storage_->Initialize()); 84 ASSERT_TRUE(metadata_storage_->Initialize());
85 85
86 metadata_.reset(new ResourceMetadata(metadata_storage_.get(), 86 metadata_.reset(new ResourceMetadata(metadata_storage_.get(),
87 base::MessageLoopProxy::current())); 87 base::MessageLoopProxy::current()));
88 ASSERT_EQ(FILE_ERROR_OK, metadata_->Initialize()); 88 ASSERT_EQ(FILE_ERROR_OK, metadata_->Initialize());
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 EXPECT_EQ(FILE_ERROR_OK, error); 142 EXPECT_EQ(FILE_ERROR_OK, error);
143 143
144 EXPECT_FALSE(change_list_loader_->IsRefreshing()); 144 EXPECT_FALSE(change_list_loader_->IsRefreshing());
145 EXPECT_EQ(previous_changestamp, metadata_->GetLargestChangestamp()); 145 EXPECT_EQ(previous_changestamp, metadata_->GetLargestChangestamp());
146 EXPECT_EQ(previous_resource_list_load_count, 146 EXPECT_EQ(previous_resource_list_load_count,
147 drive_service_->resource_list_load_count()); 147 drive_service_->resource_list_load_count());
148 } 148 }
149 149
150 } // namespace internal 150 } // namespace internal
151 } // namespace drive 151 } // namespace drive
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/change_list_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698