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

Side by Side Diff: chrome/browser/policy/cloud/cloud_policy_client_unittest.cc

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/policy/cloud_policy_client.h" 5 #include "chrome/browser/policy/cloud/cloud_policy_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/policy/mock_device_management_service.h" 12 #include "chrome/browser/policy/cloud/mock_device_management_service.h"
13 #include "chrome/browser/policy/proto/device_management_backend.pb.h" 13 #include "chrome/browser/policy/proto/device_management_backend.pb.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 using testing::Return; 17 using testing::Return;
18 using testing::SaveArg; 18 using testing::SaveArg;
19 using testing::StrictMock; 19 using testing::StrictMock;
20 using testing::_; 20 using testing::_;
21 21
22 namespace em = enterprise_management; 22 namespace em = enterprise_management;
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // Verify that the client got all the responses mapped to their namespaces. 430 // Verify that the client got all the responses mapped to their namespaces.
431 for (ResponseMap::iterator it = expected_responses.begin(); 431 for (ResponseMap::iterator it = expected_responses.begin();
432 it != expected_responses.end(); ++it) { 432 it != expected_responses.end(); ++it) {
433 const em::PolicyFetchResponse* response = client_->GetPolicyFor(it->first); 433 const em::PolicyFetchResponse* response = client_->GetPolicyFor(it->first);
434 ASSERT_TRUE(response); 434 ASSERT_TRUE(response);
435 EXPECT_EQ(it->second.SerializeAsString(), response->SerializeAsString()); 435 EXPECT_EQ(it->second.SerializeAsString(), response->SerializeAsString());
436 } 436 }
437 } 437 }
438 438
439 } // namespace policy 439 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698