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

Side by Side Diff: chrome/browser/services/gcm/gcm_profile_service_unittest.cc

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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_profile_service.h" 5 #include "components/gcm_driver/gcm_profile_service.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "base/run_loop.h" 14 #include "base/run_loop.h"
15 #include "build/build_config.h"
14 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" 16 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
15 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 17 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
16 #include "chrome/browser/signin/signin_manager_factory.h" 18 #include "chrome/browser/signin/signin_manager_factory.h"
17 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" 19 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
18 #include "chrome/common/channel_info.h" 20 #include "chrome/common/channel_info.h"
19 #include "chrome/test/base/testing_profile.h" 21 #include "chrome/test/base/testing_profile.h"
20 #if defined(OS_CHROMEOS) 22 #if defined(OS_CHROMEOS)
21 #include "chromeos/dbus/dbus_thread_manager.h" 23 #include "chromeos/dbus/dbus_thread_manager.h"
22 #endif 24 #endif
23 #include "components/gcm_driver/fake_gcm_app_handler.h" 25 #include "components/gcm_driver/fake_gcm_app_handler.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 OutgoingMessage message; 242 OutgoingMessage message;
241 message.id = "1"; 243 message.id = "1";
242 message.data["key1"] = "value1"; 244 message.data["key1"] = "value1";
243 SendAndWaitForCompletion(message); 245 SendAndWaitForCompletion(message);
244 246
245 EXPECT_EQ(message.id, send_message_id()); 247 EXPECT_EQ(message.id, send_message_id());
246 EXPECT_EQ(GCMClient::SUCCESS, send_result()); 248 EXPECT_EQ(GCMClient::SUCCESS, send_result());
247 } 249 }
248 250
249 } // namespace gcm 251 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698