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

Side by Side Diff: chrome/browser/themes/theme_syncable_service_unittest.cc

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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) 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/themes/theme_syncable_service.h" 5 #include "chrome/browser/themes/theme_syncable_service.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 #include "sync/api/fake_sync_change_processor.h" 27 #include "sync/api/fake_sync_change_processor.h"
28 #include "sync/api/sync_change_processor_wrapper_for_test.h" 28 #include "sync/api/sync_change_processor_wrapper_for_test.h"
29 #include "sync/api/sync_error.h" 29 #include "sync/api/sync_error.h"
30 #include "sync/api/sync_error_factory_mock.h" 30 #include "sync/api/sync_error_factory_mock.h"
31 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h" 31 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h"
32 #include "sync/protocol/sync.pb.h" 32 #include "sync/protocol/sync.pb.h"
33 #include "sync/protocol/theme_specifics.pb.h" 33 #include "sync/protocol/theme_specifics.pb.h"
34 #include "testing/gtest/include/gtest/gtest.h" 34 #include "testing/gtest/include/gtest/gtest.h"
35 35
36 #if defined(OS_CHROMEOS) 36 #if defined(OS_CHROMEOS)
37 #include "chrome/browser/chromeos/login/users/user_manager.h" 37 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h"
38 #include "chrome/browser/chromeos/settings/cros_settings.h" 38 #include "chrome/browser/chromeos/settings/cros_settings.h"
39 #include "chrome/browser/chromeos/settings/device_settings_service.h" 39 #include "chrome/browser/chromeos/settings/device_settings_service.h"
40 #endif 40 #endif
41 41
42 using std::string; 42 using std::string;
43 43
44 namespace { 44 namespace {
45 45
46 static const char kCustomThemeName[] = "name"; 46 static const char kCustomThemeName[] = "name";
47 static const char kCustomThemeUrl[] = "http://update.url/foo"; 47 static const char kCustomThemeUrl[] = "http://update.url/foo";
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 654
655 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) { 655 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) {
656 // Set up theme service to use custom theme that was installed by policy. 656 // Set up theme service to use custom theme that was installed by policy.
657 fake_theme_service_->SetTheme(theme_extension_.get()); 657 fake_theme_service_->SetTheme(theme_extension_.get());
658 658
659 syncer::SyncDataList data_list = 659 syncer::SyncDataList data_list =
660 theme_sync_service_->GetAllSyncData(syncer::THEMES); 660 theme_sync_service_->GetAllSyncData(syncer::THEMES);
661 661
662 ASSERT_EQ(0u, data_list.size()); 662 ASSERT_EQ(0u, data_list.size());
663 } 663 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698