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

Side by Side Diff: chrome/browser/chromeos/policy/device_local_account_browsertest.cc

Issue 14179007: Move cryptohome_library to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 virtual void AsyncCheckKey(const std::string& username, 229 virtual void AsyncCheckKey(const std::string& username,
230 const std::string& key, 230 const std::string& key,
231 const AsyncMethodCallback& callback) OVERRIDE {} 231 const AsyncMethodCallback& callback) OVERRIDE {}
232 virtual void AsyncMigrateKey(const std::string& username, 232 virtual void AsyncMigrateKey(const std::string& username,
233 const std::string& from_key, 233 const std::string& from_key,
234 const std::string& to_key, 234 const std::string& to_key,
235 const AsyncMethodCallback& callback) OVERRIDE {} 235 const AsyncMethodCallback& callback) OVERRIDE {}
236 virtual void AsyncRemove(const std::string& username, 236 virtual void AsyncRemove(const std::string& username,
237 const AsyncMethodCallback& callback) OVERRIDE {} 237 const AsyncMethodCallback& callback) OVERRIDE {}
238 virtual bool GetSystemSalt(std::vector<uint8>* salt) OVERRIDE { 238 virtual bool GetSystemSalt(std::vector<uint8>* salt) OVERRIDE {
239 return false; 239 const char kFakeSystemSalt[] = "fake_system_salt";
240 salt->assign(kFakeSystemSalt,
241 kFakeSystemSalt + arraysize(kFakeSystemSalt) - 1);
242 return true;
240 } 243 }
241 virtual void GetSanitizedUsername( 244 virtual void GetSanitizedUsername(
242 const std::string& username, 245 const std::string& username,
243 const chromeos::StringDBusMethodCallback& callback) OVERRIDE { 246 const chromeos::StringDBusMethodCallback& callback) OVERRIDE {
244 MessageLoop::current()->PostTask( 247 MessageLoop::current()->PostTask(
245 FROM_HERE, 248 FROM_HERE,
246 base::Bind(callback, 249 base::Bind(callback,
247 chromeos::DBUS_METHOD_CALL_SUCCESS, 250 chromeos::DBUS_METHOD_CALL_SUCCESS,
248 username)); 251 username));
249 MessageLoop::current()->PostTask( 252 MessageLoop::current()->PostTask(
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 640
638 TabStripModel* tabs = browser->tab_strip_model(); 641 TabStripModel* tabs = browser->tab_strip_model();
639 ASSERT_TRUE(tabs); 642 ASSERT_TRUE(tabs);
640 int expected_tab_count = static_cast<int>(arraysize(kStartupURLs)); 643 int expected_tab_count = static_cast<int>(arraysize(kStartupURLs));
641 EXPECT_EQ(expected_tab_count, tabs->count()); 644 EXPECT_EQ(expected_tab_count, tabs->count());
642 for (int i = 0; i < expected_tab_count && i < tabs->count(); ++i) 645 for (int i = 0; i < expected_tab_count && i < tabs->count(); ++i)
643 EXPECT_EQ(GURL(kStartupURLs[i]), tabs->GetWebContentsAt(i)->GetURL()); 646 EXPECT_EQ(GURL(kStartupURLs[i]), tabs->GetWebContentsAt(i)->GetURL());
644 } 647 }
645 648
646 } // namespace policy 649 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698