| OLD | NEW |
| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "google_apis/gaia/gaia_urls.h" | 30 #include "google_apis/gaia/gaia_urls.h" |
| 31 #include "testing/gtest/include/gtest/gtest.h" | 31 #include "testing/gtest/include/gtest/gtest.h" |
| 32 #include "url/gurl.h" | 32 #include "url/gurl.h" |
| 33 | 33 |
| 34 namespace policy { | 34 namespace policy { |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 const char kAccountId[] = "dla1@example.com"; | 38 const char kAccountId[] = "dla1@example.com"; |
| 39 const char kAccountPassword[] = "letmein"; | 39 const char kAccountPassword[] = "letmein"; |
| 40 const char* kStartupURLs[] = {"chrome://policy", "chrome://about"}; | 40 const char* const kStartupURLs[] = {"chrome://policy", "chrome://about"}; |
| 41 const char kTestAuthCode[] = "fake-auth-code"; | 41 const char kTestAuthCode[] = "fake-auth-code"; |
| 42 const char kTestGaiaUberToken[] = "fake-uber-token"; | 42 const char kTestGaiaUberToken[] = "fake-uber-token"; |
| 43 const char kTestAuthLoginAccessToken[] = "fake-access-token"; | 43 const char kTestAuthLoginAccessToken[] = "fake-access-token"; |
| 44 const char kTestRefreshToken[] = "fake-refresh-token"; | 44 const char kTestRefreshToken[] = "fake-refresh-token"; |
| 45 const char kTestAuthSIDCookie[] = "fake-auth-SID-cookie"; | 45 const char kTestAuthSIDCookie[] = "fake-auth-SID-cookie"; |
| 46 const char kTestAuthLSIDCookie[] = "fake-auth-LSID-cookie"; | 46 const char kTestAuthLSIDCookie[] = "fake-auth-LSID-cookie"; |
| 47 const char kTestSessionSIDCookie[] = "fake-session-SID-cookie"; | 47 const char kTestSessionSIDCookie[] = "fake-session-SID-cookie"; |
| 48 const char kTestSessionLSIDCookie[] = "fake-session-LSID-cookie"; | 48 const char kTestSessionLSIDCookie[] = "fake-session-LSID-cookie"; |
| 49 const char kTestUserinfoToken[] = "fake-userinfo-token"; | 49 const char kTestUserinfoToken[] = "fake-userinfo-token"; |
| 50 | 50 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 ASSERT_TRUE(tabs); | 178 ASSERT_TRUE(tabs); |
| 179 const int expected_tab_count = static_cast<int>(arraysize(kStartupURLs)); | 179 const int expected_tab_count = static_cast<int>(arraysize(kStartupURLs)); |
| 180 EXPECT_EQ(expected_tab_count, tabs->count()); | 180 EXPECT_EQ(expected_tab_count, tabs->count()); |
| 181 for (int i = 0; i < expected_tab_count && i < tabs->count(); ++i) { | 181 for (int i = 0; i < expected_tab_count && i < tabs->count(); ++i) { |
| 182 EXPECT_EQ(GURL(kStartupURLs[i]), | 182 EXPECT_EQ(GURL(kStartupURLs[i]), |
| 183 tabs->GetWebContentsAt(i)->GetVisibleURL()); | 183 tabs->GetWebContentsAt(i)->GetVisibleURL()); |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace policy | 187 } // namespace policy |
| OLD | NEW |