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

Side by Side Diff: chrome/browser/sync/sync_ui_util_unittest.cc

Issue 469993006: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/signin/fake_signin_manager.h" 9 #include "chrome/browser/signin/fake_signin_manager.h"
10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
11 #include "chrome/browser/sync/profile_sync_service_mock.h" 11 #include "chrome/browser/sync/profile_sync_service_mock.h"
12 #include "chrome/browser/sync/sync_ui_util.h" 12 #include "chrome/browser/sync/sync_ui_util.h"
13 #include "chrome/grit/generated_resources.h"
13 #include "components/signin/core/browser/fake_auth_status_provider.h" 14 #include "components/signin/core/browser/fake_auth_status_provider.h"
14 #include "components/signin/core/browser/profile_oauth2_token_service.h" 15 #include "components/signin/core/browser/profile_oauth2_token_service.h"
15 #include "components/signin/core/browser/signin_manager.h" 16 #include "components/signin/core/browser/signin_manager.h"
16 #include "content/public/test/test_browser_thread.h" 17 #include "content/public/test/test_browser_thread.h"
17 #include "content/public/test/test_browser_thread_bundle.h" 18 #include "content/public/test/test_browser_thread_bundle.h"
18 #include "grit/generated_resources.h"
19 #include "testing/gmock/include/gmock/gmock-actions.h" 19 #include "testing/gmock/include/gmock/gmock-actions.h"
20 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
23 23
24 using ::testing::AtMost; 24 using ::testing::AtMost;
25 using ::testing::NiceMock; 25 using ::testing::NiceMock;
26 using ::testing::Return; 26 using ::testing::Return;
27 using ::testing::ReturnRef; 27 using ::testing::ReturnRef;
28 using ::testing::SetArgPointee; 28 using ::testing::SetArgPointee;
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 EXPECT_FALSE(status_label.empty()); 402 EXPECT_FALSE(status_label.empty());
403 EXPECT_EQ(status_label.find(base::ASCIIToUTF16("href")), 403 EXPECT_EQ(status_label.find(base::ASCIIToUTF16("href")),
404 base::string16::npos); 404 base::string16::npos);
405 testing::Mock::VerifyAndClearExpectations(&service); 405 testing::Mock::VerifyAndClearExpectations(&service);
406 testing::Mock::VerifyAndClearExpectations(&signin); 406 testing::Mock::VerifyAndClearExpectations(&signin);
407 EXPECT_CALL(service, GetAuthError()).WillRepeatedly(ReturnRef(error)); 407 EXPECT_CALL(service, GetAuthError()).WillRepeatedly(ReturnRef(error));
408 provider.reset(); 408 provider.reset();
409 signin.Shutdown(); 409 signin.Shutdown();
410 } 410 }
411 } 411 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_ui_util.cc ('k') | chrome/browser/task_manager/background_information.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698