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

Side by Side Diff: chrome/browser/policy/enterprise_metrics_browsertest.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/scoped_temp_dir.h" 9 #include "base/scoped_temp_dir.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 22 matching lines...) Expand all
33 #include "chrome/browser/chromeos/login/signed_settings.h" 33 #include "chrome/browser/chromeos/login/signed_settings.h"
34 #include "chrome/browser/chromeos/system/statistics_provider.h" 34 #include "chrome/browser/chromeos/system/statistics_provider.h"
35 #include "chrome/browser/policy/device_policy_cache.h" 35 #include "chrome/browser/policy/device_policy_cache.h"
36 #include "chrome/browser/policy/enterprise_install_attributes.h" 36 #include "chrome/browser/policy/enterprise_install_attributes.h"
37 #endif 37 #endif
38 38
39 namespace policy { 39 namespace policy {
40 40
41 namespace em = enterprise_management; 41 namespace em = enterprise_management;
42 42
43 using content::BrowserThread;
43 using testing::AnyNumber; 44 using testing::AnyNumber;
44 using testing::DoAll; 45 using testing::DoAll;
45 using testing::Invoke; 46 using testing::Invoke;
46 using testing::Mock; 47 using testing::Mock;
47 using testing::Return; 48 using testing::Return;
48 using testing::SetArgPointee; 49 using testing::SetArgPointee;
49 using testing::_; 50 using testing::_;
50 51
51 namespace { 52 namespace {
52 53
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 helper.CompleteRetrieve(chromeos::SignedSettings::NOT_FOUND); 861 helper.CompleteRetrieve(chromeos::SignedSettings::NOT_FOUND);
861 helper.SetData("\xff"); 862 helper.SetData("\xff");
862 helper.SetPolicy(); 863 helper.SetPolicy();
863 ExpectSample(kMetricPolicyFetchInvalidPolicy); 864 ExpectSample(kMetricPolicyFetchInvalidPolicy);
864 EXPECT_TRUE(CheckSamples()); 865 EXPECT_TRUE(CheckSamples());
865 } 866 }
866 867
867 #endif 868 #endif
868 869
869 } // namespace policy 870 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/device_token_fetcher_unittest.cc ('k') | chrome/browser/policy/file_based_policy_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698