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

Side by Side Diff: chrome/browser/password_manager/password_store_mac_unittest.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 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) 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/password_manager/password_store_mac.h" 5 #include "chrome/browser/password_manager/password_store_mac.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/message_loop/message_loop.h"
14 #include "base/run_loop.h" 15 #include "base/run_loop.h"
15 #include "base/scoped_observer.h" 16 #include "base/scoped_observer.h"
16 #include "base/stl_util.h" 17 #include "base/stl_util.h"
17 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
18 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
19 #include "base/synchronization/waitable_event.h" 20 #include "base/synchronization/waitable_event.h"
20 #include "base/test/histogram_tester.h" 21 #include "base/test/histogram_tester.h"
21 #include "base/threading/thread_task_runner_handle.h" 22 #include "base/threading/thread_task_runner_handle.h"
22 #include "chrome/browser/password_manager/password_store_mac_internal.h" 23 #include "chrome/browser/password_manager/password_store_mac_internal.h"
23 #include "chrome/common/chrome_paths.h" 24 #include "chrome/common/chrome_paths.h"
(...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after
2103 keychain_adapter.GetAllPasswordFormPasswords(); 2104 keychain_adapter.GetAllPasswordFormPasswords();
2104 EXPECT_EQ(2u, passwords.size()); 2105 EXPECT_EQ(2u, passwords.size());
2105 2106
2106 // Delete everyhting but only the Chrome-owned item should be affected. 2107 // Delete everyhting but only the Chrome-owned item should be affected.
2107 PasswordStoreMac::CleanUpKeychain(keychain(), passwords); 2108 PasswordStoreMac::CleanUpKeychain(keychain(), passwords);
2108 passwords = keychain_adapter.GetAllPasswordFormPasswords(); 2109 passwords = keychain_adapter.GetAllPasswordFormPasswords();
2109 ASSERT_EQ(1u, passwords.size()); 2110 ASSERT_EQ(1u, passwords.size());
2110 EXPECT_EQ("http://some.domain.com/", passwords[0]->signon_realm); 2111 EXPECT_EQ("http://some.domain.com/", passwords[0]->signon_realm);
2111 EXPECT_EQ(ASCIIToUTF16("sekrit"), passwords[0]->password_value); 2112 EXPECT_EQ(ASCIIToUTF16("sekrit"), passwords[0]->password_value);
2112 } 2113 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698