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

Side by Side Diff: chrome/browser/extensions/activity_log/uma_policy_unittest.cc

Issue 268553002: Move DOMActivityLogger and associated code from //chrome to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chrome/browser/extensions/activity_log/uma_policy.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/time/time.h" 5 #include "base/time/time.h"
6 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" 6 #include "chrome/browser/extensions/activity_log/activity_action_constants.h"
7 #include "chrome/browser/extensions/activity_log/uma_policy.h" 7 #include "chrome/browser/extensions/activity_log/uma_policy.h"
8 #include "chrome/common/extensions/dom_action_types.h"
9 #include "chrome/test/base/testing_profile.h" 8 #include "chrome/test/base/testing_profile.h"
9 #include "extensions/common/dom_action_types.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class UmaPolicyTest : public testing::Test { 14 class UmaPolicyTest : public testing::Test {
15 public: 15 public:
16 UmaPolicyTest() { 16 UmaPolicyTest() {
17 profile_.reset(new TestingProfile()); 17 profile_.reset(new TestingProfile());
18 } 18 }
19 19
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 UmaPolicy::CleanURL(GURL("http://www.cnn.com"))); 216 UmaPolicy::CleanURL(GURL("http://www.cnn.com")));
217 ASSERT_EQ("http://www.cnn.com/", 217 ASSERT_EQ("http://www.cnn.com/",
218 UmaPolicy::CleanURL(GURL("http://www.cnn.com/#a"))); 218 UmaPolicy::CleanURL(GURL("http://www.cnn.com/#a")));
219 ASSERT_EQ("http://www.cnn.com/", 219 ASSERT_EQ("http://www.cnn.com/",
220 UmaPolicy::CleanURL(GURL("http://www.cnn.com/#aaaa"))); 220 UmaPolicy::CleanURL(GURL("http://www.cnn.com/#aaaa")));
221 ASSERT_EQ("http://www.cnn.com/?q=a", 221 ASSERT_EQ("http://www.cnn.com/?q=a",
222 UmaPolicy::CleanURL(GURL("http://www.cnn.com/?q=a"))); 222 UmaPolicy::CleanURL(GURL("http://www.cnn.com/?q=a")));
223 } 223 }
224 224
225 } // namespace extensions 225 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/activity_log/uma_policy.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698