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

Side by Side Diff: components/gcm_driver/gcm_account_tracker_unittest.cc

Issue 2136563002: Remove calls to MessageLoop::current() in base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restore dns_config_service_posix_unittest.cc Created 4 years, 5 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 "components/gcm_driver/gcm_account_tracker.h" 5 #include "components/gcm_driver/gcm_account_tracker.h"
6 6
7 #include <map> 7 #include <map>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/message_loop/message_loop.h"
13 #include "components/gcm_driver/fake_gcm_driver.h" 14 #include "components/gcm_driver/fake_gcm_driver.h"
14 #include "google_apis/gaia/fake_identity_provider.h" 15 #include "google_apis/gaia/fake_identity_provider.h"
15 #include "google_apis/gaia/fake_oauth2_token_service.h" 16 #include "google_apis/gaia/fake_oauth2_token_service.h"
16 #include "google_apis/gaia/google_service_auth_error.h" 17 #include "google_apis/gaia/google_service_auth_error.h"
17 #include "net/http/http_status_code.h" 18 #include "net/http/http_status_code.h"
18 #include "net/url_request/test_url_fetcher_factory.h" 19 #include "net/url_request/test_url_fetcher_factory.h"
19 #include "net/url_request/url_request_test_util.h" 20 #include "net/url_request/url_request_test_util.h"
20 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
21 22
22 namespace gcm { 23 namespace gcm {
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 // but we have the update call. 515 // but we have the update call.
515 SignOutAccount(kAccountId1); 516 SignOutAccount(kAccountId1);
516 EXPECT_TRUE(driver()->update_accounts_called()); 517 EXPECT_TRUE(driver()->update_accounts_called());
517 EXPECT_FALSE(IsTokenReportingRequired()); 518 EXPECT_FALSE(IsTokenReportingRequired());
518 } 519 }
519 520
520 // TODO(fgorski): Add test for adding account after removal >> make sure it does 521 // TODO(fgorski): Add test for adding account after removal >> make sure it does
521 // not mark removal. 522 // not mark removal.
522 523
523 } // namespace gcm 524 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698