Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / remoting / pin_browsertest.cc
blob6f269cfa98307a1db3a8daff3776bc10b4b89a30
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/files/file_path.h"
6 #include "base/files/file_util.h"
7 #include "chrome/test/remoting/remote_desktop_browsertest.h"
8 #include "chrome/test/remoting/waiter.h"
10 namespace remoting {
12 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Cancel_PIN) {
13 content::WebContents* content = SetUpTest();
14 LoadScript(content, FILE_PATH_LITERAL("cancel_pin_browser_test.js"));
16 RunJavaScriptTest(content, "Cancel_PIN", "{"
17 "pin: '" + me2me_pin() + "'"
18 "}");
20 Cleanup();
23 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Invalid_PIN) {
24 content::WebContents* content = SetUpTest();
25 LoadScript(content, FILE_PATH_LITERAL("invalid_pin_browser_test.js"));
27 RunJavaScriptTest(content, "Invalid_PIN", "{"
28 // Append arbitrary characters after the pin to make it invalid.
29 "pin: '" + me2me_pin() + "ABC'"
30 "}");
32 Cleanup();
35 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Update_PIN) {
36 content::WebContents* content = SetUpTest();
37 LoadScript(content, FILE_PATH_LITERAL("update_pin_browser_test.js"));
39 RunJavaScriptTest(content, "Update_PIN", "{"
40 "old_pin: '" + me2me_pin() + "',"
41 "new_pin: '314159'"
42 "}");
44 Cleanup();
47 } // namespace remoting