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

Side by Side Diff: chrome/browser/browsing_data/passwords_counter_browsertest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/browsing_data/passwords_counter.h" 5 #include "chrome/browser/browsing_data/passwords_counter.h"
6 6
7 #include "base/prefs/pref_service.h"
8 #include "base/run_loop.h" 7 #include "base/run_loop.h"
9 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/password_manager/password_store_factory.h" 9 #include "chrome/browser/password_manager/password_store_factory.h"
11 #include "chrome/browser/sync/test/integration/passwords_helper.h" 10 #include "chrome/browser/sync/test/integration/passwords_helper.h"
12 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
13 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
14 #include "chrome/test/base/in_process_browser_test.h" 13 #include "chrome/test/base/in_process_browser_test.h"
15 #include "components/autofill/core/common/password_form.h" 14 #include "components/autofill/core/common/password_form.h"
15 #include "components/prefs/pref_service.h"
16 16
17 namespace { 17 namespace {
18 18
19 using autofill::PasswordForm; 19 using autofill::PasswordForm;
20 20
21 class PasswordsCounterTest : public InProcessBrowserTest, 21 class PasswordsCounterTest : public InProcessBrowserTest,
22 public password_manager::PasswordStore::Observer { 22 public password_manager::PasswordStore::Observer {
23 public: 23 public:
24 void SetUpOnMainThread() override { 24 void SetUpOnMainThread() override {
25 time_ = base::Time::Now(); 25 time_ = base::Time::Now();
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 SetDeletionPeriodPref(BrowsingDataRemover::FOUR_WEEKS); 243 SetDeletionPeriodPref(BrowsingDataRemover::FOUR_WEEKS);
244 WaitForCounting(); 244 WaitForCounting();
245 EXPECT_EQ(3u, GetResult()); 245 EXPECT_EQ(3u, GetResult());
246 246
247 SetDeletionPeriodPref(BrowsingDataRemover::EVERYTHING); 247 SetDeletionPeriodPref(BrowsingDataRemover::EVERYTHING);
248 WaitForCounting(); 248 WaitForCounting();
249 EXPECT_EQ(4u, GetResult()); 249 EXPECT_EQ(4u, GetResult());
250 } 250 }
251 251
252 } // namespace 252 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698