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

Side by Side Diff: chrome/browser/chromeos/login/supervised/supervised_user_test_base.cc

Issue 436373002: Move non-API code out of sync/api/attachments/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply CR feedback. 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 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/chromeos/login/supervised/supervised_user_test_base.h" 5 #include "chrome/browser/chromeos/login/supervised/supervised_user_test_base.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 19 matching lines...) Expand all
30 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service _factory.h" 30 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service _factory.h"
31 #include "chrome/browser/supervised_user/supervised_user_sync_service.h" 31 #include "chrome/browser/supervised_user/supervised_user_sync_service.h"
32 #include "chrome/browser/supervised_user/supervised_user_sync_service_factory.h" 32 #include "chrome/browser/supervised_user/supervised_user_sync_service_factory.h"
33 #include "chromeos/cryptohome/mock_async_method_caller.h" 33 #include "chromeos/cryptohome/mock_async_method_caller.h"
34 #include "chromeos/cryptohome/mock_homedir_methods.h" 34 #include "chromeos/cryptohome/mock_homedir_methods.h"
35 #include "chromeos/login/auth/key.h" 35 #include "chromeos/login/auth/key.h"
36 #include "chromeos/login/auth/user_context.h" 36 #include "chromeos/login/auth/user_context.h"
37 #include "content/public/browser/notification_service.h" 37 #include "content/public/browser/notification_service.h"
38 #include "content/public/test/browser_test_utils.h" 38 #include "content/public/test/browser_test_utils.h"
39 #include "content/public/test/test_utils.h" 39 #include "content/public/test/test_utils.h"
40 #include "sync/api/attachments/attachment_service_proxy_for_test.h"
41 #include "sync/api/fake_sync_change_processor.h" 40 #include "sync/api/fake_sync_change_processor.h"
42 #include "sync/api/sync_change.h" 41 #include "sync/api/sync_change.h"
43 #include "sync/api/sync_error_factory_mock.h" 42 #include "sync/api/sync_error_factory_mock.h"
43 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h"
44 #include "sync/protocol/sync.pb.h" 44 #include "sync/protocol/sync.pb.h"
45 45
46 using testing::_; 46 using testing::_;
47 using base::StringPrintf; 47 using base::StringPrintf;
48 48
49 namespace chromeos { 49 namespace chromeos {
50 50
51 namespace { 51 namespace {
52 52
53 const char kCurrentPage[] = "$('supervised-user-creation').currentPage_"; 53 const char kCurrentPage[] = "$('supervised-user-creation').currentPage_";
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // Confirm deletion. 426 // Confirm deletion.
427 JSEval(StringPrintf( 427 JSEval(StringPrintf(
428 "$('pod-row').pods[%d].querySelector('.remove-warning-button').click()", 428 "$('pod-row').pods[%d].querySelector('.remove-warning-button').click()",
429 user_index)); 429 user_index));
430 430
431 // Make sure there is no supervised user in list. 431 // Make sure there is no supervised user in list.
432 ASSERT_EQ(original_user_count - 1, UserManager::Get()->GetUsers().size()); 432 ASSERT_EQ(original_user_count - 1, UserManager::Get()->GetUsers().size());
433 } 433 }
434 434
435 } // namespace chromeos 435 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698