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

Side by Side Diff: chrome/browser/chromeos/login/user_image_manager_browsertest.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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 <map> 5 #include <map>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 20 matching lines...) Expand all
31 #include "chrome/browser/chromeos/login/startup_utils.h" 31 #include "chrome/browser/chromeos/login/startup_utils.h"
32 #include "chrome/browser/chromeos/login/user.h" 32 #include "chrome/browser/chromeos/login/user.h"
33 #include "chrome/browser/chromeos/login/user_image.h" 33 #include "chrome/browser/chromeos/login/user_image.h"
34 #include "chrome/browser/chromeos/login/user_image_manager.h" 34 #include "chrome/browser/chromeos/login/user_image_manager.h"
35 #include "chrome/browser/chromeos/login/user_image_manager_impl.h" 35 #include "chrome/browser/chromeos/login/user_image_manager_impl.h"
36 #include "chrome/browser/chromeos/login/user_image_manager_test_util.h" 36 #include "chrome/browser/chromeos/login/user_image_manager_test_util.h"
37 #include "chrome/browser/chromeos/login/user_manager.h" 37 #include "chrome/browser/chromeos/login/user_manager.h"
38 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u til.h" 38 #include "chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_u til.h"
39 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" 39 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h"
40 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom eos.h" 40 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom eos.h"
41 #include "chrome/browser/policy/cloud/cloud_policy_core.h"
42 #include "chrome/browser/policy/cloud/cloud_policy_store.h"
43 #include "chrome/browser/policy/cloud/policy_builder.h"
44 #include "chrome/browser/profiles/profile.h" 41 #include "chrome/browser/profiles/profile.h"
45 #include "chrome/browser/profiles/profile_downloader.h" 42 #include "chrome/browser/profiles/profile_downloader.h"
46 #include "chrome/common/chrome_paths.h" 43 #include "chrome/common/chrome_paths.h"
47 #include "chrome/test/base/in_process_browser_test.h" 44 #include "chrome/test/base/in_process_browser_test.h"
48 #include "chrome/test/base/testing_browser_process.h" 45 #include "chrome/test/base/testing_browser_process.h"
49 #include "chromeos/chromeos_paths.h" 46 #include "chromeos/chromeos_paths.h"
50 #include "chromeos/dbus/cryptohome_client.h" 47 #include "chromeos/dbus/cryptohome_client.h"
51 #include "chromeos/dbus/dbus_thread_manager.h" 48 #include "chromeos/dbus/dbus_thread_manager.h"
52 #include "chromeos/dbus/fake_dbus_thread_manager.h" 49 #include "chromeos/dbus/fake_dbus_thread_manager.h"
53 #include "chromeos/dbus/fake_session_manager_client.h" 50 #include "chromeos/dbus/fake_session_manager_client.h"
54 #include "chromeos/dbus/session_manager_client.h" 51 #include "chromeos/dbus/session_manager_client.h"
52 #include "components/policy/core/common/cloud/cloud_policy_core.h"
53 #include "components/policy/core/common/cloud/cloud_policy_store.h"
54 #include "components/policy/core/common/cloud/policy_builder.h"
55 #include "content/public/browser/notification_service.h" 55 #include "content/public/browser/notification_service.h"
56 #include "content/public/browser/notification_source.h" 56 #include "content/public/browser/notification_source.h"
57 #include "content/public/test/test_utils.h" 57 #include "content/public/test/test_utils.h"
58 #include "crypto/rsa_private_key.h" 58 #include "crypto/rsa_private_key.h"
59 #include "google_apis/gaia/oauth2_token_service.h" 59 #include "google_apis/gaia/oauth2_token_service.h"
60 #include "net/test/embedded_test_server/embedded_test_server.h" 60 #include "net/test/embedded_test_server/embedded_test_server.h"
61 #include "net/url_request/test_url_fetcher_factory.h" 61 #include "net/url_request/test_url_fetcher_factory.h"
62 #include "net/url_request/url_fetcher_delegate.h" 62 #include "net/url_request/url_fetcher_delegate.h"
63 #include "net/url_request/url_request_status.h" 63 #include "net/url_request/url_request_status.h"
64 #include "policy/proto/cloud_policy.pb.h" 64 #include "policy/proto/cloud_policy.pb.h"
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 860
861 saved_image = test::ImageLoader(GetUserImagePath(kTestUser1, "jpg")).Load(); 861 saved_image = test::ImageLoader(GetUserImagePath(kTestUser1, "jpg")).Load();
862 ASSERT_TRUE(saved_image); 862 ASSERT_TRUE(saved_image);
863 863
864 // Check image dimensions. Images can't be compared since JPEG is lossy. 864 // Check image dimensions. Images can't be compared since JPEG is lossy.
865 EXPECT_EQ(policy_image_->width(), saved_image->width()); 865 EXPECT_EQ(policy_image_->width(), saved_image->width());
866 EXPECT_EQ(policy_image_->height(), saved_image->height()); 866 EXPECT_EQ(policy_image_->height(), saved_image->height());
867 } 867 }
868 868
869 } // namespace chromeos 869 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/user_image_screen.cc ('k') | chrome/browser/chromeos/login/version_info_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698