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

Side by Side Diff: chrome/browser/extensions/extension_gcm_app_handler_unittest.cc

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests 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
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/extensions/extension_gcm_app_handler.h" 5 #include "chrome/browser/extensions/extension_gcm_app_handler.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"
(...skipping 27 matching lines...) Expand all
38 #include "extensions/common/manifest.h" 38 #include "extensions/common/manifest.h"
39 #include "extensions/common/manifest_constants.h" 39 #include "extensions/common/manifest_constants.h"
40 #include "extensions/common/permissions/api_permission.h" 40 #include "extensions/common/permissions/api_permission.h"
41 #include "testing/gtest/include/gtest/gtest.h" 41 #include "testing/gtest/include/gtest/gtest.h"
42 42
43 #if !defined(OS_ANDROID) 43 #if !defined(OS_ANDROID)
44 #include "chrome/browser/extensions/api/gcm/gcm_api.h" 44 #include "chrome/browser/extensions/api/gcm/gcm_api.h"
45 #endif 45 #endif
46 46
47 #if defined(OS_CHROMEOS) 47 #if defined(OS_CHROMEOS)
48 #include "chrome/browser/chromeos/login/user_manager.h" 48 #include "chrome/browser/chromeos/login/users/user_manager.h"
49 #include "chrome/browser/chromeos/settings/cros_settings.h" 49 #include "chrome/browser/chromeos/settings/cros_settings.h"
50 #include "chrome/browser/chromeos/settings/device_settings_service.h" 50 #include "chrome/browser/chromeos/settings/device_settings_service.h"
51 #endif 51 #endif
52 52
53 namespace extensions { 53 namespace extensions {
54 54
55 namespace { 55 namespace {
56 56
57 const char kTestExtensionName[] = "FooBar"; 57 const char kTestExtensionName[] = "FooBar";
58 const char kTestingUsername[] = "user1@example.com"; 58 const char kTestingUsername[] = "user1@example.com";
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 EXPECT_EQ(gcm::GCMClient::SUCCESS, registration_result()); 381 EXPECT_EQ(gcm::GCMClient::SUCCESS, registration_result());
382 382
383 // Unregistration should be triggered when the extension is uninstalled. 383 // Unregistration should be triggered when the extension is uninstalled.
384 UninstallExtension(extension); 384 UninstallExtension(extension);
385 waiter()->WaitUntilCompleted(); 385 waiter()->WaitUntilCompleted();
386 EXPECT_EQ(gcm::GCMClient::SUCCESS, 386 EXPECT_EQ(gcm::GCMClient::SUCCESS,
387 gcm_app_handler()->unregistration_result()); 387 gcm_app_handler()->unregistration_result());
388 } 388 }
389 389
390 } // namespace extensions 390 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698