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

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

Issue 290013011: Move all remaining files to gcm_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 6 years, 7 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
« no previous file with comments | « components/gcm_driver/gcm_driver.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/services/gcm/gcm_driver.h" 5 #include "components/gcm_driver/gcm_driver.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/message_loop/message_loop_proxy.h" 12 #include "base/message_loop/message_loop_proxy.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/test/test_simple_task_runner.h" 15 #include "base/test/test_simple_task_runner.h"
16 #include "base/threading/thread.h" 16 #include "base/threading/thread.h"
17 #include "chrome/browser/services/gcm/fake_gcm_app_handler.h" 17 #include "components/gcm_driver/fake_gcm_app_handler.h"
18 #include "chrome/browser/services/gcm/fake_gcm_client.h" 18 #include "components/gcm_driver/fake_gcm_client.h"
19 #include "chrome/browser/services/gcm/fake_gcm_client_factory.h" 19 #include "components/gcm_driver/fake_gcm_client_factory.h"
20 #include "chrome/browser/services/gcm/gcm_app_handler.h" 20 #include "components/gcm_driver/gcm_app_handler.h"
21 #include "components/gcm_driver/gcm_client_factory.h" 21 #include "components/gcm_driver/gcm_client_factory.h"
22 #include "content/public/browser/browser_thread.h"
23 #include "google_apis/gaia/fake_identity_provider.h" 22 #include "google_apis/gaia/fake_identity_provider.h"
24 #include "google_apis/gaia/fake_oauth2_token_service.h" 23 #include "google_apis/gaia/fake_oauth2_token_service.h"
25 #include "net/url_request/url_request_context_getter.h" 24 #include "net/url_request/url_request_context_getter.h"
26 #include "net/url_request/url_request_test_util.h" 25 #include "net/url_request/url_request_test_util.h"
27 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
28 27
29 namespace gcm { 28 namespace gcm {
30 29
31 namespace { 30 namespace {
32 31
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 891
893 TEST_F(GCMDriverFunctionalTest, MessagesDeleted) { 892 TEST_F(GCMDriverFunctionalTest, MessagesDeleted) {
894 GetGCMClient()->DeleteMessages(kTestAppID1); 893 GetGCMClient()->DeleteMessages(kTestAppID1);
895 gcm_app_handler()->WaitForNotification(); 894 gcm_app_handler()->WaitForNotification();
896 EXPECT_EQ(FakeGCMAppHandler::MESSAGES_DELETED_EVENT, 895 EXPECT_EQ(FakeGCMAppHandler::MESSAGES_DELETED_EVENT,
897 gcm_app_handler()->received_event()); 896 gcm_app_handler()->received_event());
898 EXPECT_EQ(kTestAppID1, gcm_app_handler()->app_id()); 897 EXPECT_EQ(kTestAppID1, gcm_app_handler()->app_id());
899 } 898 }
900 899
901 } // namespace gcm 900 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_driver.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698