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

Side by Side Diff: chrome/browser/chromeos/login/saml/saml_browsertest.cc

Issue 2318023002: //chrome/browser/chromeos: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Address comment and also remove non-trivial cases Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 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 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 <cstring> 5 #include <cstring>
6 #include <memory> 6 #include <memory>
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 &guest_view_manager_factory_); 773 &guest_view_manager_factory_);
774 gaia_frame_parent_ = "oauth-enroll-auth-view"; 774 gaia_frame_parent_ = "oauth-enroll-auth-view";
775 } 775 }
776 776
777 SAMLEnrollmentTest::~SAMLEnrollmentTest() { 777 SAMLEnrollmentTest::~SAMLEnrollmentTest() {
778 } 778 }
779 779
780 void SAMLEnrollmentTest::SetUp() { 780 void SAMLEnrollmentTest::SetUp() {
781 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 781 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
782 const base::FilePath policy_file = 782 const base::FilePath policy_file =
783 temp_dir_.path().AppendASCII("policy.json"); 783 temp_dir_.GetPath().AppendASCII("policy.json");
784 ASSERT_EQ(static_cast<int>(strlen(kPolicy)), 784 ASSERT_EQ(static_cast<int>(strlen(kPolicy)),
785 base::WriteFile(policy_file, kPolicy, strlen(kPolicy))); 785 base::WriteFile(policy_file, kPolicy, strlen(kPolicy)));
786 786
787 test_server_.reset(new policy::LocalPolicyTestServer(policy_file)); 787 test_server_.reset(new policy::LocalPolicyTestServer(policy_file));
788 ASSERT_TRUE(test_server_->Start()); 788 ASSERT_TRUE(test_server_->Start());
789 789
790 SamlTest::SetUp(); 790 SamlTest::SetUp();
791 } 791 }
792 792
793 void SAMLEnrollmentTest::SetUpCommandLine(base::CommandLine* command_line) { 793 void SAMLEnrollmentTest::SetUpCommandLine(base::CommandLine* command_line) {
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 1360
1361 // Scraping one password should finish login. 1361 // Scraping one password should finish login.
1362 content::WindowedNotificationObserver session_start_waiter( 1362 content::WindowedNotificationObserver session_start_waiter(
1363 chrome::NOTIFICATION_SESSION_STARTED, 1363 chrome::NOTIFICATION_SESSION_STARTED,
1364 content::NotificationService::AllSources()); 1364 content::NotificationService::AllSources());
1365 ExecuteJsInSigninFrame("document.getElementById('Submit').click();"); 1365 ExecuteJsInSigninFrame("document.getElementById('Submit').click();");
1366 session_start_waiter.Wait(); 1366 session_start_waiter.Wait();
1367 } 1367 }
1368 1368
1369 } // namespace chromeos 1369 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698