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

Side by Side Diff: chrome/browser/search/hotword_service_unittest.cc

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « chrome/browser/search/hotword_service_factory.cc ('k') | chrome/browser/search/iframe_source.h » ('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 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/metrics/field_trial.h" 7 #include "base/metrics/field_trial.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/test/test_simple_task_runner.h" 9 #include "base/test/test_simple_task_runner.h"
10 #include "build/build_config.h"
10 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/extensions/extension_service_test_base.h" 12 #include "chrome/browser/extensions/extension_service_test_base.h"
12 #include "chrome/browser/extensions/test_extension_service.h" 13 #include "chrome/browser/extensions/test_extension_service.h"
13 #include "chrome/browser/search/hotword_audio_history_handler.h" 14 #include "chrome/browser/search/hotword_audio_history_handler.h"
14 #include "chrome/browser/search/hotword_service.h" 15 #include "chrome/browser/search/hotword_service.h"
15 #include "chrome/browser/search/hotword_service_factory.h" 16 #include "chrome/browser/search/hotword_service_factory.h"
16 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/extensions/extension_constants.h" 18 #include "chrome/common/extensions/extension_constants.h"
18 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
19 #include "chrome/test/base/testing_profile.h" 20 #include "chrome/test/base/testing_profile.h"
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 EXPECT_EQ(1, audio_history_handler->GetAudioHistoryCalls()); 520 EXPECT_EQ(1, audio_history_handler->GetAudioHistoryCalls());
520 // We expect the next check for audio history to be in the queue. 521 // We expect the next check for audio history to be in the queue.
521 EXPECT_EQ(base::TimeDelta::FromDays(1), 522 EXPECT_EQ(base::TimeDelta::FromDays(1),
522 test_task_runner->NextPendingTaskDelay()); 523 test_task_runner->NextPendingTaskDelay());
523 EXPECT_TRUE(test_task_runner->HasPendingTask()); 524 EXPECT_TRUE(test_task_runner->HasPendingTask());
524 test_task_runner->RunPendingTasks(); 525 test_task_runner->RunPendingTasks();
525 EXPECT_EQ(2, audio_history_handler->GetAudioHistoryCalls()); 526 EXPECT_EQ(2, audio_history_handler->GetAudioHistoryCalls());
526 EXPECT_TRUE(test_task_runner->HasPendingTask()); 527 EXPECT_TRUE(test_task_runner->HasPendingTask());
527 test_task_runner->ClearPendingTasks(); 528 test_task_runner->ClearPendingTasks();
528 } 529 }
OLDNEW
« no previous file with comments | « chrome/browser/search/hotword_service_factory.cc ('k') | chrome/browser/search/iframe_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698