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

Side by Side Diff: chrome/browser/sync/profile_sync_service_unittest.cc

Issue 7537033: Move more files from chrome/test to chrome/test/base, part #5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/net/gaia/token_service.h" 9 #include "chrome/browser/net/gaia/token_service.h"
10 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h" 10 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h"
11 #include "chrome/browser/sync/glue/data_type_controller.h" 11 #include "chrome/browser/sync/glue/data_type_controller.h"
12 #include "chrome/browser/sync/js_arg_list.h" 12 #include "chrome/browser/sync/js_arg_list.h"
13 #include "chrome/browser/sync/js_event_details.h" 13 #include "chrome/browser/sync/js_event_details.h"
14 #include "chrome/browser/sync/js_test_util.h" 14 #include "chrome/browser/sync/js_test_util.h"
15 #include "chrome/browser/sync/profile_sync_factory_mock.h" 15 #include "chrome/browser/sync/profile_sync_factory_mock.h"
16 #include "chrome/browser/sync/test_profile_sync_service.h" 16 #include "chrome/browser/sync/test_profile_sync_service.h"
17 #include "chrome/common/net/gaia/gaia_constants.h" 17 #include "chrome/common/net/gaia/gaia_constants.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "chrome/test/base/testing_pref_service.h"
19 #include "chrome/test/base/testing_profile.h" 20 #include "chrome/test/base/testing_profile.h"
20 #include "chrome/test/testing_pref_service.h"
21 #include "content/browser/browser_thread.h" 21 #include "content/browser/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 // TODO(akalin): Add tests here that exercise the whole 25 // TODO(akalin): Add tests here that exercise the whole
26 // ProfileSyncService/SyncBackendHost stack while mocking out as 26 // ProfileSyncService/SyncBackendHost stack while mocking out as
27 // little as possible. 27 // little as possible.
28 28
29 namespace browser_sync { 29 namespace browser_sync {
30 30
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 // This will still exist, but the text should have changed. 380 // This will still exist, but the text should have changed.
381 ASSERT_TRUE(file_util::PathExists(sync_file2)); 381 ASSERT_TRUE(file_util::PathExists(sync_file2));
382 std::string file2text; 382 std::string file2text;
383 ASSERT_TRUE(file_util::ReadFileToString(sync_file2, &file2text)); 383 ASSERT_TRUE(file_util::ReadFileToString(sync_file2, &file2text));
384 ASSERT_NE(file2text.compare(nonsense2), 0); 384 ASSERT_NE(file2text.compare(nonsense2), 0);
385 } 385 }
386 386
387 } // namespace 387 } // namespace
388 388
389 } // namespace browser_sync 389 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_preference_unittest.cc ('k') | chrome/browser/tab_contents/web_contents_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698