OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <set> | 5 #include <set> |
6 #include "base/basictypes.h" | 6 #include "base/basictypes.h" |
7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/signin/signin_manager.h" | 10 #include "chrome/browser/signin/signin_manager.h" |
11 #include "chrome/browser/signin/signin_manager_fake.h" | 11 #include "chrome/browser/signin/signin_manager_fake.h" |
12 #include "chrome/browser/sync/profile_sync_service_mock.h" | 12 #include "chrome/browser/sync/profile_sync_service_mock.h" |
13 #include "chrome/browser/sync/sync_ui_util.h" | 13 #include "chrome/browser/sync/sync_ui_util.h" |
14 #include "content/test/test_browser_thread.h" | 14 #include "content/public/test/test_browser_thread.h" |
15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
16 #include "testing/gmock/include/gmock/gmock-actions.h" | 16 #include "testing/gmock/include/gmock/gmock-actions.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 | 20 |
21 using ::testing::AtMost; | 21 using ::testing::AtMost; |
22 using ::testing::Return; | 22 using ::testing::Return; |
23 using ::testing::ReturnRef; | 23 using ::testing::ReturnRef; |
24 using ::testing::NiceMock; | 24 using ::testing::NiceMock; |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 // Ensures a search for string 'href' (found in links, not a string to be | 361 // Ensures a search for string 'href' (found in links, not a string to be |
362 // found in an English language message) fails when links are excluded from | 362 // found in an English language message) fails when links are excluded from |
363 // the status label. | 363 // the status label. |
364 EXPECT_EQ(status_label.find(string16(ASCIIToUTF16("href"))), | 364 EXPECT_EQ(status_label.find(string16(ASCIIToUTF16("href"))), |
365 string16::npos); | 365 string16::npos); |
366 if (auth_error) { | 366 if (auth_error) { |
367 delete auth_error; | 367 delete auth_error; |
368 } | 368 } |
369 } | 369 } |
370 } | 370 } |
OLD | NEW |