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

Unified Diff: chrome/browser/sync/test/integration/signin_test_utils.h

Issue 621153002: A Sign in to GAIA test utility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sign in with chrome://chrome-signin Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/signin_test_utils.h
diff --git a/chrome/browser/sync/test/integration/signin_test_utils.h b/chrome/browser/sync/test/integration/signin_test_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..56c1feb33e41f65913353ef91a9745202b774739
--- /dev/null
+++ b/chrome/browser/sync/test/integration/signin_test_utils.h
@@ -0,0 +1,16 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SIGNIN_TEST_UTILS_H_
+#define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SIGNIN_TEST_UTILS_H_
+
+class Browser;
+
pval...(no longer on Chromium) 2014/11/07 23:54:14 For consistency, let's do the following: 1) Renam
shadi 2014/11/08 01:37:57 Done.
+// A static function which signs in a user using Chrome sign-in process.
pval...(no longer on Chromium) 2014/11/07 23:54:14 this isn't marked static
shadi 2014/11/08 01:37:57 Yeah it should not be static.
+// This will connect to GAIA servers and kick in a sync cycle.
+bool SignInToGAIA(Browser* browser,
pval...(no longer on Chromium) 2014/11/07 23:54:14 what do you think about renaming this to SignIn or
shadi 2014/11/08 01:37:57 Done.
+ const std::string& username,
Nicolas Zea 2014/11/07 23:55:48 I'm surprised you don't have to declare string?
shadi 2014/11/08 01:37:57 Yeah, the compiler did not complain probably becau
+ const std::string& password);
+
+#endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SIGNIN_TEST_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698