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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 "chrome/browser/chromeos/gdata/gdata_sync_client.h" 5 #include "chrome/browser/chromeos/gdata/gdata_sync_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/scoped_temp_dir.h" 13 #include "base/scoped_temp_dir.h"
14 #include "chrome/browser/chromeos/cros/cros_library.h" 14 #include "chrome/browser/chromeos/cros/cros_library.h"
15 #include "chrome/browser/chromeos/cros/mock_network_library.h" 15 #include "chrome/browser/chromeos/cros/mock_network_library.h"
16 #include "chrome/browser/chromeos/gdata/mock_gdata_file_system.h" 16 #include "chrome/browser/chromeos/gdata/mock_gdata_file_system.h"
17 #include "chrome/browser/prefs/pref_service.h" 17 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/common/chrome_paths.h" 18 #include "chrome/common/chrome_paths.h"
19 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "chrome/test/base/testing_profile.h" 20 #include "chrome/test/base/testing_profile.h"
21 #include "content/test/test_browser_thread.h" 21 #include "content/public/test/test_browser_thread.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 using ::testing::AnyNumber; 25 using ::testing::AnyNumber;
26 using ::testing::Return; 26 using ::testing::Return;
27 using ::testing::_; 27 using ::testing::_;
28 28
29 namespace gdata { 29 namespace gdata {
30 30
31 class GDataSyncClientTest : public testing::Test { 31 class GDataSyncClientTest : public testing::Test {
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 ASSERT_EQ(1U, resource_ids.size()); 347 ASSERT_EQ(1U, resource_ids.size());
348 EXPECT_EQ("resource_id_not_fetched_baz", resource_ids[1]); 348 EXPECT_EQ("resource_id_not_fetched_baz", resource_ids[1]);
349 349
350 sync_client_->OnFileUnpinned("resource_id_not_fetched_baz", "md5"); 350 sync_client_->OnFileUnpinned("resource_id_not_fetched_baz", "md5");
351 // "baz" should be gone. 351 // "baz" should be gone.
352 resource_ids = sync_client_->GetResourceIdsForTesting(); 352 resource_ids = sync_client_->GetResourceIdsForTesting();
353 ASSERT_TRUE(resource_ids.empty()); 353 ASSERT_TRUE(resource_ids.empty());
354 } 354 }
355 355
356 } // namespace gdata 356 } // namespace gdata
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698