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

Side by Side Diff: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_browsertest.cc

Issue 635573005: Cleanup: Better constify some strings in chrome/browser/{chromeos,extensions}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, nit 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 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 <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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/enterprise_install_attributes.cc ('k') | chrome/browser/chromeos/preferences_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698