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

Side by Side Diff: chrome/browser/extensions/updater/extension_updater_unittest.cc

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: similarity 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 <list> 5 #include <list>
6 #include <map> 6 #include <map>
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "net/base/escape.h" 60 #include "net/base/escape.h"
61 #include "net/base/load_flags.h" 61 #include "net/base/load_flags.h"
62 #include "net/http/http_request_headers.h" 62 #include "net/http/http_request_headers.h"
63 #include "net/url_request/test_url_fetcher_factory.h" 63 #include "net/url_request/test_url_fetcher_factory.h"
64 #include "net/url_request/url_request_status.h" 64 #include "net/url_request/url_request_status.h"
65 #include "testing/gmock/include/gmock/gmock.h" 65 #include "testing/gmock/include/gmock/gmock.h"
66 #include "testing/gtest/include/gtest/gtest.h" 66 #include "testing/gtest/include/gtest/gtest.h"
67 #include "url/third_party/mozilla/url_parse.h" 67 #include "url/third_party/mozilla/url_parse.h"
68 68
69 #if defined(OS_CHROMEOS) 69 #if defined(OS_CHROMEOS)
70 #include "chrome/browser/chromeos/login/users/user_manager.h" 70 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h"
71 #include "chrome/browser/chromeos/settings/cros_settings.h" 71 #include "chrome/browser/chromeos/settings/cros_settings.h"
72 #include "chrome/browser/chromeos/settings/device_settings_service.h" 72 #include "chrome/browser/chromeos/settings/device_settings_service.h"
73 #include "components/user_manager/user_manager.h"
73 #endif 74 #endif
74 75
75 using base::Time; 76 using base::Time;
76 using base::TimeDelta; 77 using base::TimeDelta;
77 using content::BrowserThread; 78 using content::BrowserThread;
78 using testing::DoAll; 79 using testing::DoAll;
79 using testing::Invoke; 80 using testing::Invoke;
80 using testing::InvokeWithoutArgs; 81 using testing::InvokeWithoutArgs;
81 using testing::Mock; 82 using testing::Mock;
82 using testing::Return; 83 using testing::Return;
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
2018 // -prodversionmin (shouldn't update if browser version too old) 2019 // -prodversionmin (shouldn't update if browser version too old)
2019 // -manifests & updates arriving out of order / interleaved 2020 // -manifests & updates arriving out of order / interleaved
2020 // -malformed update url (empty, file://, has query, has a # fragment, etc.) 2021 // -malformed update url (empty, file://, has query, has a # fragment, etc.)
2021 // -An extension gets uninstalled while updates are in progress (so it doesn't 2022 // -An extension gets uninstalled while updates are in progress (so it doesn't
2022 // "come back from the dead") 2023 // "come back from the dead")
2023 // -An extension gets manually updated to v3 while we're downloading v2 (ie 2024 // -An extension gets manually updated to v3 while we're downloading v2 (ie
2024 // you don't get downgraded accidentally) 2025 // you don't get downgraded accidentally)
2025 // -An update manifest mentions multiple updates 2026 // -An update manifest mentions multiple updates
2026 2027
2027 } // namespace extensions 2028 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698