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

Unified Diff: chrome/test/remoting/unauthenticated_browsertest.cc

Issue 840023004: Implement mocks for identity and host-list, add a browser test to test the app in various failure m… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing file. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/remoting/unauthenticated_browsertest.cc
diff --git a/chrome/test/remoting/unauthenticated_browsertest.cc b/chrome/test/remoting/unauthenticated_browsertest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..568e6d45512c5ce0c751396866916584bda3eb16
--- /dev/null
+++ b/chrome/test/remoting/unauthenticated_browsertest.cc
@@ -0,0 +1,27 @@
+// Copyright 2015 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.
+
+#include "base/files/file_path.h"
+#include "base/files/file_util.h"
+#include "chrome/test/remoting/remote_desktop_browsertest.h"
+#include "chrome/test/remoting/waiter.h"
kelvinp 2015/01/08 22:54:40 I think you can remove all the includes except #i
Jamie 2015/01/08 23:43:08 Done.
+
+namespace remoting {
+
+class UnauthenticatedBrowserTest : public RemoteDesktopBrowserTest {
+};
+
+IN_PROC_BROWSER_TEST_F(UnauthenticatedBrowserTest, MANUAL_Unauthenticated) {
+ Install();
+ LaunchChromotingApp(true);
+ LoadBrowserTestJavaScript();
+
+ content::WebContents* content = app_web_content();
+ LoadScript(content, FILE_PATH_LITERAL("unauthenticated_browser_test.js"));
+ RunJavaScriptTest(content, "Unauthenticated", "{}");
+
+ Cleanup();
+}
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698