OLD | NEW |
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 "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "base/process.h" | 6 #include "base/process/process.h" |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
10 #include "chrome/browser/extensions/extensions_quota_service.h" | 10 #include "chrome/browser/extensions/extensions_quota_service.h" |
11 #include "content/public/test/test_browser_thread.h" | 11 #include "content/public/test/test_browser_thread.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 using base::TimeDelta; | 14 using base::TimeDelta; |
15 using base::TimeTicks; | 15 using base::TimeTicks; |
16 using content::BrowserThread; | 16 using content::BrowserThread; |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 // wait a while. | 406 // wait a while. |
407 EXPECT_NE( | 407 EXPECT_NE( |
408 "", | 408 "", |
409 service_->Assess( | 409 service_->Assess( |
410 extension_a_, f.get(), &arg, kStartTime + TimeDelta::FromDays(1))); | 410 extension_a_, f.get(), &arg, kStartTime + TimeDelta::FromDays(1))); |
411 EXPECT_NE( | 411 EXPECT_NE( |
412 "", | 412 "", |
413 service_->Assess( | 413 service_->Assess( |
414 extension_a_, g.get(), &arg, kStartTime + TimeDelta::FromDays(1))); | 414 extension_a_, g.get(), &arg, kStartTime + TimeDelta::FromDays(1))); |
415 } | 415 } |
OLD | NEW |